diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-09-27 10:36:53 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-09-27 15:26:36 +0200 |
commit | 98cfe22b5cfba65d9710c1822ad67855bca886d5 (patch) | |
tree | df589d968aa7080b83b6ddc14d02cf08973508ca /libavformat | |
parent | becdce99eb59a47d6b4b26c60f5e18e86fdfab5f (diff) | |
download | ffmpeg-streaming-98cfe22b5cfba65d9710c1822ad67855bca886d5.zip ffmpeg-streaming-98cfe22b5cfba65d9710c1822ad67855bca886d5.tar.gz |
matroskadec: export mimetype of attachments as metadata.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/matroskadec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 01c9a7b..af5532b 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -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); |