diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2008-10-18 18:27:32 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2008-10-18 18:27:32 +0000 |
commit | b73533176b75c7874cdb02dee4eae96080a70928 (patch) | |
tree | 7b79bef214e8bad183929807f9f191bd2204935c /ffmpeg.c | |
parent | 9ac1c884a00674b9cbceef8f5685ccd6a7cca9b0 (diff) | |
download | ffmpeg-b73533176b75c7874cdb02dee4eae96080a70928.tar.gz |
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
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); |