[FFmpeg-cvslog] matroskadec: export mimetype of attachments as metadata.

Anton Khirnov git at videolan.org
Wed Sep 28 02:11:05 CEST 2011


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Sep 27 10:36:53 2011 +0200| [98cfe22b5cfba65d9710c1822ad67855bca886d5] | committer: Anton Khirnov

matroskadec: export mimetype of attachments as metadata.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=98cfe22b5cfba65d9710c1822ad67855bca886d5
---

 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);



More information about the ffmpeg-cvslog mailing list