[FFmpeg-devel] [PATCH 2/4] ffmpeg: apply flags to attachments too.

Nicolas George nicolas.george at normalesup.org
Tue Jan 1 14:26:27 CET 2013


Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 ffmpeg_opt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
index 85e654f..312fd10 100644
--- a/ffmpeg_opt.c
+++ b/ffmpeg_opt.c
@@ -1655,7 +1655,7 @@ loop_end:
         AVDictionaryEntry *e;
         ost = output_streams[i];
 
-        if (   ost->stream_copy
+        if ((ost->stream_copy || ost->attachment_filename)
             && (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)
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list