1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

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:
Stefano Sabatini
2008-10-18 18:27:32 +00:00
parent 9ac1c884a0
commit b73533176b

View File

@@ -3710,8 +3710,10 @@ static int opt_preset(const char *opt, const char *arg)
opt_video_codec(tmp2); opt_video_codec(tmp2);
}else if(!strcmp(tmp, "scodec")){ }else if(!strcmp(tmp, "scodec")){
opt_subtitle_codec(tmp2); opt_subtitle_codec(tmp2);
}else }else if(opt_default(tmp, tmp2) < 0){
opt_default(tmp, tmp2); fprintf(stderr, "Invalid option or argument: %s=%s\n", tmp, tmp2);
av_exit(1);
}
} }
fclose(f); fclose(f);