[FFmpeg-cvslog] ffmpeg: move stream_copy flags handling after attachments.

Nicolas George git at videolan.org
Tue Jan 1 20:00:12 CET 2013


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Tue Jan  1 12:49:55 2013 +0100| [951a03b3a8f2d9c87de03cb9d7d22d13beaf2826] | committer: Nicolas George

ffmpeg: move stream_copy flags handling after attachments.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=951a03b3a8f2d9c87de03cb9d7d22d13beaf2826
---

 ffmpeg_opt.c |   23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)

diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
index 67000d9..b146d3a 100644
--- a/ffmpeg_opt.c
+++ b/ffmpeg_opt.c
@@ -1615,18 +1615,6 @@ loop_end:
         }
     }
 
-
-    for (i = nb_output_streams - oc->nb_streams; i < nb_output_streams; i++) { //for all streams of this output file
-        AVDictionaryEntry *e;
-        ost = output_streams[i];
-
-        if (   ost->stream_copy
-            && (e = av_dict_get(o->g->codec_opts, "flags", NULL, AV_DICT_IGNORE_SUFFIX))
-            && (!e->key[5] || check_stream_specifier(oc, ost->st, e->key+6)))
-            if (av_opt_set(ost->st->codec, "flags", e->value, 0) < 0)
-                exit(1);
-    }
-
     /* handle attached files */
     for (i = 0; i < o->nb_attachments; i++) {
         AVIOContext *pb;
@@ -1663,6 +1651,17 @@ loop_end:
         avio_close(pb);
     }
 
+    for (i = nb_output_streams - oc->nb_streams; i < nb_output_streams; i++) { //for all streams of this output file
+        AVDictionaryEntry *e;
+        ost = output_streams[i];
+
+        if (   ost->stream_copy
+            && (e = av_dict_get(o->g->codec_opts, "flags", NULL, AV_DICT_IGNORE_SUFFIX))
+            && (!e->key[5] || check_stream_specifier(oc, ost->st, e->key+6)))
+            if (av_opt_set(ost->st->codec, "flags", e->value, 0) < 0)
+                exit(1);
+    }
+
     GROW_ARRAY(output_files, nb_output_files);
     if (!(output_files[nb_output_files - 1] = av_mallocz(sizeof(*output_files[0]))))
         exit(1);



More information about the ffmpeg-cvslog mailing list