mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-15 11:30:08 +01:00
ffmpeg_opt: fix attachment streams
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -1949,8 +1949,8 @@ loop_end:
|
|||||||
ost->stream_copy = 0;
|
ost->stream_copy = 0;
|
||||||
ost->attachment_filename = o->attachments[i];
|
ost->attachment_filename = o->attachments[i];
|
||||||
ost->finished = 1;
|
ost->finished = 1;
|
||||||
ost->st->codec->extradata = attachment;
|
ost->enc_ctx->extradata = attachment;
|
||||||
ost->st->codec->extradata_size = len;
|
ost->enc_ctx->extradata_size = len;
|
||||||
|
|
||||||
p = strrchr(o->attachments[i], '/');
|
p = strrchr(o->attachments[i], '/');
|
||||||
av_dict_set(&ost->st->metadata, "filename", (p && *p) ? p + 1 : o->attachments[i], AV_DICT_DONT_OVERWRITE);
|
av_dict_set(&ost->st->metadata, "filename", (p && *p) ? p + 1 : o->attachments[i], AV_DICT_DONT_OVERWRITE);
|
||||||
|
|||||||
Reference in New Issue
Block a user