diff options
author | Clément Bœsch <u@pkh.me> | 2017-03-15 21:57:57 +0100 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2017-03-15 21:57:57 +0100 |
commit | 151b5e4a53c29d3866774366ad3c30231f1ec81b (patch) | |
tree | 601d1b06f619c03a2dda624813157d30582fdba8 | |
parent | 2e3221c30320854f4f584d1f7aa5c86806e1e816 (diff) | |
parent | 3db51bf671defd47f2ec5ab67b11fb7730fb5e5a (diff) | |
download | ffmpeg-151b5e4a53c29d3866774366ad3c30231f1ec81b.tar.gz |
Merge commit '3db51bf671defd47f2ec5ab67b11fb7730fb5e5a'
* commit '3db51bf671defd47f2ec5ab67b11fb7730fb5e5a':
ac3dec: Simplify skipping
Merged-by: Clément Bœsch <u@pkh.me>
-rw-r--r-- | libavcodec/ac3dec.c | 3 |
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 |