Commit 3db51bf6 authored by Luca Barbato's avatar Luca Barbato Committed by Diego Biurrun

ac3dec: Simplify skipping

skip_bits_long() can skip up to 32-bit ranges.
Signed-off-by: 's avatarDiego Biurrun <diego@biurrun.de>
parent f0ccc65b
...@@ -1271,8 +1271,7 @@ static int decode_audio_block(AC3DecodeContext *s, int blk) ...@@ -1271,8 +1271,7 @@ static int decode_audio_block(AC3DecodeContext *s, int blk)
/* unused dummy data */ /* unused dummy data */
if (s->skip_syntax && get_bits1(gbc)) { if (s->skip_syntax && get_bits1(gbc)) {
int skipl = get_bits(gbc, 9); int skipl = get_bits(gbc, 9);
while (skipl--) skip_bits_long(gbc, 8 * skipl);
skip_bits(gbc, 8);
} }
/* unpack the transform coefficients /* unpack the transform coefficients
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment