forked from FFmpeg/FFmpeg
matroskadec: export mimetype of attachments as metadata.
This commit is contained in:
parent
becdce99eb
commit
98cfe22b5c
1 changed files with 1 additions and 0 deletions
|
@ -1555,6 +1555,7 @@ static int matroska_read_header(AVFormatContext *s, AVFormatParameters *ap)
|
|||
if (st == NULL)
|
||||
break;
|
||||
av_dict_set(&st->metadata, "filename",attachements[j].filename, 0);
|
||||
av_dict_set(&st->metadata, "mimetype", attachements[j].mime, 0);
|
||||
st->codec->codec_id = CODEC_ID_NONE;
|
||||
st->codec->codec_type = AVMEDIA_TYPE_ATTACHMENT;
|
||||
st->codec->extradata = av_malloc(attachements[j].bin.size);
|
||||
|
|
Loading…
Add table
Reference in a new issue