1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

ac3dec: Simplify skipping

skip_bits_long() can skip up to 32-bit ranges.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
This commit is contained in:
Luca Barbato 2016-07-18 19:50:35 +02:00 committed by Diego Biurrun
parent f0ccc65bc9
commit 3db51bf671

View File

@ -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