diff options
Diffstat (limited to 'libavcodec/bitstream.h')
-rw-r--r-- | libavcodec/bitstream.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/bitstream.h b/libavcodec/bitstream.h index 5a9621d9b6..fa4f6f576e 100644 --- a/libavcodec/bitstream.h +++ b/libavcodec/bitstream.h @@ -824,4 +824,13 @@ static inline int get_xbits_trace(GetBitContext *s, int n, char *file, const cha #define tprintf(...) {} #endif +static int decode012(GetBitContext *gb){ + int n; + n = get_bits1(gb); + if (n == 0) + return 0; + else + return get_bits1(gb) + 1; +} + #endif /* BITSTREAM_H */ |