diff options
author | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-24 02:25:41 +0000 |
---|---|---|
committer | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-24 02:25:41 +0000 |
commit | 086814f29412aac40b43a35e807a76090f2f500c (patch) | |
tree | 896534f281478e6821b6bfd2a47b52f037fb3b21 /libmpdemux/stream.h | |
parent | 52457a7c61c17b7d098df8b7c6cf0c24aec782ad (diff) | |
download | mpv-086814f29412aac40b43a35e807a76090f2f500c.tar.bz2 mpv-086814f29412aac40b43a35e807a76090f2f500c.tar.xz |
Improved MP4 parsing (finally)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5302 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/stream.h')
-rw-r--r-- | libmpdemux/stream.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libmpdemux/stream.h b/libmpdemux/stream.h index 27e4ace0b2..404bfac4d6 100644 --- a/libmpdemux/stream.h +++ b/libmpdemux/stream.h @@ -118,6 +118,14 @@ inline static uint64_t stream_read_qword(stream_t *s){ return y; } +inline static unsigned int stream_read_int24(stream_t *s){ + unsigned int y; + y = stream_read_char(s); + y=(y<<8)|stream_read_char(s); + y=(y<<8)|stream_read_char(s); + return y; +} + inline static int stream_read(stream_t *s,char* mem,int total){ int len=total; while(len>0){ |