diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-02-06 01:25:52 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-02-06 10:17:32 +0100 |
commit | 3cecef5b0389bdd34f05f14498e5252475240258 (patch) | |
tree | 516cdec79b848eccae879f57bce86e0bb5f2f0fb /ffmpeg.c | |
parent | 155a0bed972248226b9044f2b72e3695459f1ff9 (diff) | |
download | ffmpeg-3cecef5b0389bdd34f05f14498e5252475240258.tar.gz |
ffmpeg: dont allow -flags to override -pass
Fixes Ticket2154
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit ccf9dd00da055e94117b56cead4af80ff331b00e)
Conflicts:
ffmpeg_opt.c
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -4703,9 +4703,11 @@ static OutputStream *new_video_stream(OptionsContext *o, AVFormatContext *oc, in if (do_pass) { if (do_pass & 1) { video_enc->flags |= CODEC_FLAG_PASS1; + av_dict_set(&ost->opts, "flags", "+pass1", AV_DICT_APPEND); } if (do_pass & 2) { video_enc->flags |= CODEC_FLAG_PASS2; + av_dict_set(&ost->opts, "flags", "+pass2", AV_DICT_APPEND); } } |