aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ac3dec.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2016-07-18 19:50:35 +0200
committerDiego Biurrun <diego@biurrun.de>2016-07-29 18:46:48 +0200
commit3db51bf671defd47f2ec5ab67b11fb7730fb5e5a (patch)
tree58072f24010f60a6d701f48be4e9aa82ffd3ec57 /libavcodec/ac3dec.c
parentf0ccc65bc9ab9ddf1366066395564c71bcc825ee (diff)
downloadffmpeg-3db51bf671defd47f2ec5ab67b11fb7730fb5e5a.tar.gz
ac3dec: Simplify skipping
skip_bits_long() can skip up to 32-bit ranges. Signed-off-by: Diego Biurrun <diego@biurrun.de>
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 f3e3da52fb..a26316453f 100644
--- a/libavcodec/ac3dec.c
+++ b/libavcodec/ac3dec.c
@@ -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