Browse Source

16l trocadero: Musepack SV7 decoder may skip more than 16 bits at the

beginning of the frame, so make it use skip_bits_long() instead of
skip_bits() for that.

Originally committed as revision 25754 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/n0.8
Kostya Shishkov 15 years ago
parent
commit
f3d77632d7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/mpc7.c

+ 1
- 1
libavcodec/mpc7.c View File

@@ -206,7 +206,7 @@ static int mpc7_decode_frame(AVCodecContext * avctx,
bits = av_malloc(((buf_size - 1) & ~3) + FF_INPUT_BUFFER_PADDING_SIZE);
c->dsp.bswap_buf((uint32_t*)bits, (const uint32_t*)(buf + 4), (buf_size - 4) >> 2);
init_get_bits(&gb, bits, (buf_size - 4)* 8);
skip_bits(&gb, buf[0]);
skip_bits_long(&gb, buf[0]);

/* read subband indexes */
for(i = 0; i <= c->maxbands; i++){


Loading…
Cancel
Save