[FFmpeg-cvslog] Merge commit '3db51bf671defd47f2ec5ab67b11fb7730fb5e5a'

Clément Bœsch git at videolan.org
Wed Mar 15 22:58:34 EET 2017


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Wed Mar 15 21:57:57 2017 +0100| [151b5e4a53c29d3866774366ad3c30231f1ec81b] | committer: Clément Bœsch

Merge commit '3db51bf671defd47f2ec5ab67b11fb7730fb5e5a'

* commit '3db51bf671defd47f2ec5ab67b11fb7730fb5e5a':
  ac3dec: Simplify skipping

Merged-by: Clément Bœsch <u at pkh.me>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=151b5e4a53c29d3866774366ad3c30231f1ec81b
---

 libavcodec/ac3dec.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index 6600849..3cb46bb 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


======================================================================




More information about the ffmpeg-cvslog mailing list