Browse Source

ffmpeg_opt: fix attachment streams

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer 11 years ago
parent
commit
229022e788
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ffmpeg_opt.c

+ 2
- 2
ffmpeg_opt.c View File

@@ -1949,8 +1949,8 @@ loop_end:
ost->stream_copy = 0;
ost->attachment_filename = o->attachments[i];
ost->finished = 1;
ost->st->codec->extradata = attachment;
ost->st->codec->extradata_size = len;
ost->enc_ctx->extradata = attachment;
ost->enc_ctx->extradata_size = len;

p = strrchr(o->attachments[i], '/');
av_dict_set(&ost->st->metadata, "filename", (p && *p) ? p + 1 : o->attachments[i], AV_DICT_DONT_OVERWRITE);


Loading…
Cancel
Save