diff options
author | mosu <mosu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-01-19 19:16:10 +0000 |
---|---|---|
committer | mosu <mosu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-01-19 19:16:10 +0000 |
commit | d6fad182c2f6aba9eb07c750052ab0b20d9dbf24 (patch) | |
tree | 3fcaf3e320ea69dcf19b874d7b2a3fc6eff803fe /libmpdemux/stream.h | |
parent | e482826611feee90cea2d85004cf3ee4210a8ddf (diff) |
Added the new C based Matroska demuxer by Aurelien Jacobs.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11808 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/stream.h')
-rw-r--r-- | libmpdemux/stream.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libmpdemux/stream.h b/libmpdemux/stream.h index a971def2b1..bfed571b47 100644 --- a/libmpdemux/stream.h +++ b/libmpdemux/stream.h @@ -166,6 +166,19 @@ inline static uint64_t stream_read_qword(stream_t *s){ return y; } +inline static uint64_t stream_read_qword_le(stream_t *s){ + uint64_t y; + y = stream_read_char(s); + y|=stream_read_char(s)<<8; + y|=stream_read_char(s)<<16; + y|=stream_read_char(s)<<24; + y|=(uint64_t)stream_read_char(s)<<32; + y|=(uint64_t)stream_read_char(s)<<40; + y|=(uint64_t)stream_read_char(s)<<48; + y|=(uint64_t)stream_read_char(s)<<56; + return y; +} + inline static unsigned int stream_read_int24(stream_t *s){ unsigned int y; y = stream_read_char(s); |