Module: libav Branch: master Commit: 98cfe22b5cfba65d9710c1822ad67855bca886d5
Author: Anton Khirnov <[email protected]> Committer: Anton Khirnov <[email protected]> Date: Tue Sep 27 10:36:53 2011 +0200 matroskadec: export mimetype of attachments as metadata. --- 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); _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
