diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2010-11-15 12:30:20 +0300 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2010-11-15 12:30:20 +0300 |
commit | f3d77632d707ca6497289d5e0b7809b6040e18c8 (patch) | |
tree | 2bb3af1d66f45373e9c9a30aff3de9645a2c9165 /libavcodec/mpc7.c | |
parent | c99f9b0ac7b26db004217f176c85154151dd3d6a (diff) |
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
Diffstat (limited to 'libavcodec/mpc7.c')
-rw-r--r-- | libavcodec/mpc7.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpc7.c b/libavcodec/mpc7.c index 83e1aa4781..c5b8d47c5e 100644 --- a/libavcodec/mpc7.c +++ b/libavcodec/mpc7.c @@ -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++){ |