Make ffmpeg abort if a preset file contains an invalid option or
argument. Originally committed as revision 15636 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
9ac1c884a0
commit
b73533176b
1 changed files with 4 additions and 2 deletions
6
ffmpeg.c
6
ffmpeg.c
|
|
@ -3710,8 +3710,10 @@ static int opt_preset(const char *opt, const char *arg)
|
|||
opt_video_codec(tmp2);
|
||||
}else if(!strcmp(tmp, "scodec")){
|
||||
opt_subtitle_codec(tmp2);
|
||||
}else
|
||||
opt_default(tmp, tmp2);
|
||||
}else if(opt_default(tmp, tmp2) < 0){
|
||||
fprintf(stderr, "Invalid option or argument: %s=%s\n", tmp, tmp2);
|
||||
av_exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
fclose(f);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue