From: Luca Barbato <[email protected]> skip_bits_long() can skip up to 32-bit ranges.
Signed-off-by: Diego Biurrun <[email protected]> --- libavcodec/ac3dec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index 254e162..e574069 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -1270,8 +1270,7 @@ static int decode_audio_block(AC3DecodeContext *s, int blk) /* unused dummy data */ if (s->skip_syntax && get_bits1(gbc)) { int skipl = get_bits(gbc, 9); - while (skipl--) - skip_bits(gbc, 8); + skip_bits_long(gbc, 8 * skipl); } /* unpack the transform coefficients -- 2.7.3 _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
