[FFmpeg-devel] [PATCH] matroska: Set doctype metadata field to ebml.doctype.

dalecurtis at chromium.org dalecurtis at chromium.org
Tue Apr 17 03:07:51 CEST 2012


From: Dale Curtis <dalecurtis at chromium.org>

Signed-off-by: Dale Curtis <dalecurtis at chromium.org>
---
 libavformat/matroskadec.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index a484c50..e948d3e 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1388,6 +1388,7 @@ static int matroska_read_header(AVFormatContext *s)
                "(EBML version %"PRIu64", doctype %s, doc version %"PRIu64")\n",
                ebml.version, ebml.doctype, ebml.doctype_version);
     }
+    av_dict_set(&s->metadata, "doctype", ebml.doctype, 0);
     for (i = 0; i < FF_ARRAY_ELEMS(matroska_doctypes); i++)
         if (!strcmp(ebml.doctype, matroska_doctypes[i]))
             break;
-- 
1.7.7.3



More information about the ffmpeg-devel mailing list