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.h | |
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.h')
-rw-r--r-- | libmpdemux/ebml.h | 6 |
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 |