Commit 165b9636 authored by stefano's avatar stefano

Make ffmpeg abort if a preset file contains an invalid option or

argument.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15636 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 57d65412
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment