[FFmpeg-cvslog] r25754 - trunk/libavcodec/mpc7.c

kostya subversion
Mon Nov 15 10:30:21 CET 2010


Author: kostya
Date: Mon Nov 15 10:30:20 2010
New Revision: 25754

Log:
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.

Modified:
   trunk/libavcodec/mpc7.c

Modified: trunk/libavcodec/mpc7.c
==============================================================================
--- trunk/libavcodec/mpc7.c	Sun Nov 14 18:33:43 2010	(r25753)
+++ trunk/libavcodec/mpc7.c	Mon Nov 15 10:30:20 2010	(r25754)
@@ -206,7 +206,7 @@ static int mpc7_decode_frame(AVCodecCont
     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++){



More information about the ffmpeg-cvslog mailing list