]> git.sesse.net Git - ffmpeg/blobdiff - ffmpeg_opt.c
Merge commit '06cf597c352519d2b70f293518c61b8c312f5d4f'
[ffmpeg] / ffmpeg_opt.c
index a418e861675fcc354e0beba1d0f0e8e62eede295..bba9dba5de9b0284c7e36f9398e6a486ee978273 100644 (file)
@@ -126,6 +126,7 @@ static void uninit_options(OptionsContext *o, int is_input)
     av_freep(&o->stream_maps);
     av_freep(&o->audio_channel_maps);
     av_freep(&o->streamid_map);
+    av_freep(&o->attachments);
 
     if (is_input)
         recording_time = o->recording_time;
@@ -1145,9 +1146,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);
             }
         }