From ae2873f72e90c948da1ed32af3e30e0cd6cef409 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 24 Jun 2015 14:02:40 +0200 Subject: demux_mkv: don't use byte strings Use char* for strings instead of bstr (data ptr + length pair). Matroska actually (probably) allows "padding" strings with \0 bytes, so using normal C strings instead of byte strings is more appropriate. --- TOOLS/lib/Parse/Matroska/Definitions.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'TOOLS') diff --git a/TOOLS/lib/Parse/Matroska/Definitions.pm b/TOOLS/lib/Parse/Matroska/Definitions.pm index adb13d0630..a73c7b1fc6 100644 --- a/TOOLS/lib/Parse/Matroska/Definitions.pm +++ b/TOOLS/lib/Parse/Matroska/Definitions.pm @@ -84,7 +84,7 @@ sub elem_by_hexid { # used by elem when setting the 'valname' key use constant TYPE_MAP => { uint => 'uint64_t', - str => 'struct bstr', + str => 'char *', binary => 'struct bstr', ebml_id => 'uint32_t', float => 'double', -- cgit v1.2.3