diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2007-08-26 22:38:57 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2007-08-26 22:38:57 +0000 |
commit | ca1daf0ad06e349344b80b90ea9cb91edda58bb8 (patch) | |
tree | 45233378640b93fd0788e84ba136bc95c982bc80 /libavcodec/unary.h | |
parent | 2407a7c10f0922d3e2f867665ae559627ccdc77f (diff) | |
download | ffmpeg-ca1daf0ad06e349344b80b90ea9cb91edda58bb8.tar.gz |
add get_unary_0_33() to help gcc with inlining
Originally committed as revision 10242 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/unary.h')
-rw-r--r-- | libavcodec/unary.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/unary.h b/libavcodec/unary.h index daf02c3aab..0f600cc4e0 100644 --- a/libavcodec/unary.h +++ b/libavcodec/unary.h @@ -38,4 +38,14 @@ static inline int get_unary(GetBitContext *gb, int stop, int len) return i; } +/** + * Get unary code terminated by a 0 with a maximum length of 33 + * @param gb GetBitContext + * @return Unary length/index + */ +static inline int get_unary_0_33(GetBitContext *gb) +{ + return get_unary(gb, 0, 33); +} + #endif /* AVCODEC_UNARY_H */ |