diff options
Diffstat (limited to 'src/libffmpeg/libavcodec/common.c')
-rw-r--r-- | src/libffmpeg/libavcodec/common.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libffmpeg/libavcodec/common.c b/src/libffmpeg/libavcodec/common.c index 77f94689e..96d8a303a 100644 --- a/src/libffmpeg/libavcodec/common.c +++ b/src/libffmpeg/libavcodec/common.c @@ -128,6 +128,7 @@ void init_get_bits(GetBitContext *s, s->bit_cnt += 8; } #endif + s->size= buffer_size; } #ifndef ALT_BITSTREAM_READER @@ -201,6 +202,14 @@ void align_get_bits(GetBitContext *s) #endif } +int check_marker(GetBitContext *s, char *msg) +{ + int bit= get_bits1(s); + if(!bit) printf("Marker bit missing %s\n", msg); + + return bit; +} + #ifndef ALT_BITSTREAM_READER /* This function is identical to get_bits_long(), the */ /* only diference is that it doesn't touch the buffer */ |