summaryrefslogtreecommitdiffstats
path: root/libmpdemux/ebml.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2010-05-20 23:50:18 +0300
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-05-20 23:50:18 +0300
commitd72541b75cb66afa2135d7753bd799af976f9aea (patch)
treed534ec0d84ebb8a3160051ab907c643f5adad5dc /libmpdemux/ebml.c
parentc67d3dfcfc9ae088288af6fab4f4d9d83e9851e0 (diff)
downloadmpv-d72541b75cb66afa2135d7753bd799af976f9aea.tar.bz2
mpv-d72541b75cb66afa2135d7753bd799af976f9aea.tar.xz
bstr.[ch]: add new files for struct bstr related functionality
Move "struct bstr" definition from ebml.h to its own header and add some utility functions/macros. Change length field type from int to size_t and adjust using code accordingly. Partially based on a patch from Anton Khirnov.
Diffstat (limited to 'libmpdemux/ebml.c')
-rw-r--r--libmpdemux/ebml.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpdemux/ebml.c b/libmpdemux/ebml.c
index 166c5df5cd..28b4a4643a 100644
--- a/libmpdemux/ebml.c
+++ b/libmpdemux/ebml.c
@@ -612,9 +612,9 @@ static void ebml_parse_element(struct ebml_parse_ctx *ctx, void *target,
strptr->len = length;
if (ed->type == EBML_TYPE_STR)
mp_msg(MSGT_DEMUX, MSGL_DBG2, "string \"%.*s\"\n",
- strptr->len, strptr->start);
+ BSTR_P(*strptr));
else
- mp_msg(MSGT_DEMUX, MSGL_DBG2, "binary %d bytes\n",
+ mp_msg(MSGT_DEMUX, MSGL_DBG2, "binary %zd bytes\n",
strptr->len);
break;