aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-02-06 01:25:52 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-02-06 10:17:32 +0100
commit3cecef5b0389bdd34f05f14498e5252475240258 (patch)
tree516cdec79b848eccae879f57bce86e0bb5f2f0fb /ffmpeg.c
parent155a0bed972248226b9044f2b72e3695459f1ff9 (diff)
downloadffmpeg-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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 6b204a176f..069ba601ef 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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);
}
}