Skip to content

Commit

Permalink
ffmpeg: apply flags to attachments too.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas George committed Jan 1, 2013
1 parent 951a03b commit 5bab99b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ffmpeg_opt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1655,7 +1655,7 @@ static int open_output_file(OptionsContext *o, const char *filename)
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)
Expand Down

0 comments on commit 5bab99b

Please sign in to comment.