diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-05-04 18:57:39 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-05-04 18:57:39 +0000 |
commit | 24ae1cde4f2c8f642c020aed19906c72799982cc (patch) | |
tree | 8c486a68d37f8c3b221b4454e855bb287d13883a /DOCS | |
parent | 9734059676c9ca621d78f1b51583c01a9233a594 (diff) | |
download | mpv-24ae1cde4f2c8f642c020aed19906c72799982cc.tar.bz2 mpv-24ae1cde4f2c8f642c020aed19906c72799982cc.tar.xz |
corrected the sample code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10062 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'DOCS')
-rw-r--r-- | DOCS/tech/mpcf.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/DOCS/tech/mpcf.txt b/DOCS/tech/mpcf.txt index d3b2017ac1..cd388af679 100644 --- a/DOCS/tech/mpcf.txt +++ b/DOCS/tech/mpcf.txt @@ -540,7 +540,7 @@ static inline void put_bytes(BufferContext *bc, int count, uint64_t val){ return val; } -static inline uint64_t get_v(ByteStream *bc){ +static inline uint64_t get_v(BufferContext *bc){ uint64_t val= 0; for(; spaceLeft(bc) > 0; ){ @@ -554,7 +554,7 @@ static inline uint64_t get_v(ByteStream *bc){ return -1; } -static inline int put_v(ByteStream *bc, uint64_t val){ +static inline int put_v(BufferContext *bc, uint64_t val){ int i; if(spaceLeft(bc) < 9) return -1; @@ -572,12 +572,12 @@ static inline int put_v(ByteStream *bc, uint64_t val){ return 0; } -static inline int put_s(ByteStream *bc, uint64_t val){ +static inline int put_s(BufferContext *bc, uint64_t val){ if(val<=0) return put_v(bc, -2*val ); else return put_v(bc, 2*val-1); } -static inline int64_t get_s(ByteStream *bc){ +static inline int64_t get_s(BufferContext *bc){ int64_t v= get_v(bc) + 1; if(v&1) return -(v>>1); else return (v>>1); |