[FFmpeg-cvslog] r26269 - trunk/libavcodec/wavpack.c

kostya subversion
Sat Jan 8 20:23:24 CET 2011


Author: kostya
Date: Sat Jan  8 20:23:24 2011
New Revision: 26269

Log:
Limit number of samples decoded for WavPack mono mode, so decoded samples will
fit into output buffer.

Modified:
   trunk/libavcodec/wavpack.c

Modified: trunk/libavcodec/wavpack.c
==============================================================================
--- trunk/libavcodec/wavpack.c	Sat Jan  8 16:49:29 2011	(r26268)
+++ trunk/libavcodec/wavpack.c	Sat Jan  8 20:23:24 2011	(r26269)
@@ -630,7 +630,7 @@ static inline int wv_unpack_mono(Wavpack
         else
             *dst16++ = wv_get_value_integer(s, &crc_extra_bits, S);
         count++;
-    }while(!last && count < s->samples);
+    }while(!last && count < s->max_samples);
 
     s->samples_left -= count;
     if(!s->samples_left){



More information about the ffmpeg-cvslog mailing list