summaryrefslogtreecommitdiff
path: root/libavcodec/ac3dec.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2017-03-15 21:57:57 +0100
committerClément Bœsch <u@pkh.me>2017-03-15 21:57:57 +0100
commit151b5e4a53c29d3866774366ad3c30231f1ec81b (patch)
tree601d1b06f619c03a2dda624813157d30582fdba8 /libavcodec/ac3dec.c
parent2e3221c30320854f4f584d1f7aa5c86806e1e816 (diff)
parent3db51bf671defd47f2ec5ab67b11fb7730fb5e5a (diff)
Merge commit '3db51bf671defd47f2ec5ab67b11fb7730fb5e5a'
* commit '3db51bf671defd47f2ec5ab67b11fb7730fb5e5a': ac3dec: Simplify skipping Merged-by: Clément Bœsch <u@pkh.me>
Diffstat (limited to 'libavcodec/ac3dec.c')
-rw-r--r--libavcodec/ac3dec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index 6600849a7b..3cb46bb930 100644
--- a/libavcodec/ac3dec.c
+++ b/libavcodec/ac3dec.c
@@ -1359,8 +1359,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