summaryrefslogtreecommitdiffstats
path: root/libmpdemux/ebml.h
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.h
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.h')
-rw-r--r--libmpdemux/ebml.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/libmpdemux/ebml.h b/libmpdemux/ebml.h
index b2fed46fb9..395ffc4df5 100644
--- a/libmpdemux/ebml.h
+++ b/libmpdemux/ebml.h
@@ -24,6 +24,7 @@
#include <stdbool.h>
#include "stream/stream.h"
+#include "bstr.h"
/* EBML version supported */
@@ -62,11 +63,6 @@ struct ebml_parse_ctx {
bool no_error_messages;
};
-struct bstr {
- uint8_t *start;
- int len;
-};
-
#include "ebml_types.h"
#define EBML_ID_INVALID 0xffffffff