[FFmpeg-devel] [PATCH] matroska: Set doctype metadata field to ebml.doctype.
dalecurtis at chromium.org
dalecurtis at chromium.org
Tue Apr 17 19:04:47 CEST 2012
From: Dale Curtis <dalecurtis at chromium.org>
Updates hashes for lavf-fate-ogg_vp3 to account for new
metadata in the file header.
Signed-off-by: Dale Curtis <dalecurtis at chromium.org>
---
libavformat/matroskadec.c | 1 +
tests/ref/lavf-fate/ogg_vp3 | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 6d2d43e..0e6a30c 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1392,6 +1392,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;
diff --git a/tests/ref/lavf-fate/ogg_vp3 b/tests/ref/lavf-fate/ogg_vp3
index b77476d..0da959b 100644
--- a/tests/ref/lavf-fate/ogg_vp3
+++ b/tests/ref/lavf-fate/ogg_vp3
@@ -1,3 +1,3 @@
-adbe6c30bdfe934dc5ae397f4db2960d *./tests/data/lavf-fate/lavf.ogg
-417644 ./tests/data/lavf-fate/lavf.ogg
+bb46d5186f4af047d68d34603cc53ba1 *./tests/data/lavf-fate/lavf.ogg
+417664 ./tests/data/lavf-fate/lavf.ogg
./tests/data/lavf-fate/lavf.ogg CRC=0x037e3e79
--
1.7.7.3
More information about the ffmpeg-devel
mailing list