bitstream_skip can skip up to 32bit ranges.
---
libavcodec/ac3dec.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index 9dd69a1..b1548ed 100644
--- a/libavcodec/ac3dec.c
+++ b/libavcodec/ac3dec.c
@@ -1275,8 +1275,7 @@ static int decode_audio_block(AC3DecodeContext *s, int
blk)
/* unused dummy data */
if (s->skip_syntax && bitstream_read_bit(bc)) {
int skipl = bitstream_read(bc, 9);
- while (skipl--)
- bitstream_skip(bc, 8);
+ bitstream_skip(bc, 8 * skipl);
}
/* unpack the transform coefficients
--
2.6.1
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel