diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-04-04 20:59:50 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-04-04 20:59:50 +0000 |
commit | 1924f3ce366236b7608ead4a9db454c250346793 (patch) | |
tree | 9dec44d7c0635c6a7d791b757b0b989f22d87226 /libavcodec/golomb.h | |
parent | 365d19ec781a9f04bb36b493fb898063ba8170b8 (diff) | |
download | ffmpeg-1924f3ce366236b7608ead4a9db454c250346793.tar.gz |
multiple reference frames support
Originally committed as revision 1734 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/golomb.h')
-rw-r--r-- | libavcodec/golomb.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/golomb.h b/libavcodec/golomb.h index 552c01730e..91c699367c 100644 --- a/libavcodec/golomb.h +++ b/libavcodec/golomb.h @@ -66,7 +66,7 @@ static inline int get_te0_golomb(GetBitContext *gb, int range){ assert(range >= 1); if(range==1) return 0; - else if(range==2) return get_bits1(gb); + else if(range==2) return get_bits1(gb)^1; else return get_ue_golomb(gb); } @@ -76,7 +76,7 @@ static inline int get_te0_golomb(GetBitContext *gb, int range){ static inline int get_te_golomb(GetBitContext *gb, int range){ assert(range >= 1); - if(range==2) return get_bits1(gb); + if(range==2) return get_bits1(gb)^1; else return get_ue_golomb(gb); } @@ -193,7 +193,7 @@ static inline void set_te_golomb(PutBitContext *pb, int i, int range){ assert(range >= 1); assert(i<=range); - if(range==2) put_bits(pb, 1, i); + if(range==2) put_bits(pb, 1, i^1); else set_ue_golomb(pb, i); } |