ffmpeg: apply flags to attachments too.

This commit is contained in:
Nicolas George 2013-01-01 12:51:14 +01:00
parent 951a03b3a8
commit 5bab99baea
1 changed files with 1 additions and 1 deletions

View File

@ -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)