You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
matroskadec: export mimetype of attachments as metadata.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user