]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/blobdiff - libavcodec/mpc7.c
Use skip_bits_long() for large skips
[frescor/ffmpeg.git] / libavcodec / mpc7.c
index 75f65163eaef006f3e9a1d0d756b95c7a06b002b..614a418684b15efad344501e048787c0ac2d76d5 100644 (file)
@@ -40,7 +40,7 @@
 
 static VLC scfi_vlc, dscf_vlc, hdr_vlc, quant_vlc[MPC7_QUANT_VLC_TABLES][2];
 
-static uint16_t quant_offsets[MPC7_QUANT_VLC_TABLES*2 + 1] =
+static const uint16_t quant_offsets[MPC7_QUANT_VLC_TABLES*2 + 1] =
 {
        0, 512, 1024, 1536, 2052, 2564, 3076, 3588, 4100, 4612, 5124,
        5636, 6164, 6676, 7224
@@ -78,7 +78,7 @@ static av_cold int mpc7_decode_init(AVCodecContext * avctx)
         av_log(avctx, AV_LOG_ERROR, "Too many bands: %i\n", c->maxbands);
         return -1;
     }
-    skip_bits(&gb, 88);
+    skip_bits_long(&gb, 88);
     c->gapless = get_bits1(&gb);
     c->lastframelen = get_bits(&gb, 11);
     av_log(avctx, AV_LOG_DEBUG, "IS: %d, MSS: %d, TG: %d, LFL: %d, bands: %d\n",