diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-05-20 23:50:18 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-05-20 23:50:18 +0300 |
commit | d72541b75cb66afa2135d7753bd799af976f9aea (patch) | |
tree | d534ec0d84ebb8a3160051ab907c643f5adad5dc /libmpdemux/ebml.c | |
parent | c67d3dfcfc9ae088288af6fab4f4d9d83e9851e0 (diff) | |
download | mpv-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.c | 4 |
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; |