Browse Source

ac3dec: Simplify skipping

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

Signed-off-by: Diego Biurrun <diego@biurrun.de>
tags/n3.3
Luca Barbato Diego Biurrun 9 years ago
parent
commit
3db51bf671
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavcodec/ac3dec.c

+ 1
- 2
libavcodec/ac3dec.c View File

@@ -1271,8 +1271,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


Loading…
Cancel
Save