[Ffmpeg-cvslog] r7733 - trunk/libavcodec/wavpack.c

kostya subversion
Sat Jan 27 15:24:40 CET 2007


Author: kostya
Date: Sat Jan 27 15:24:40 2007
New Revision: 7733

Modified:
   trunk/libavcodec/wavpack.c

Log:
Coded residual in WavPack may be > 0xFFFF

Modified: trunk/libavcodec/wavpack.c
==============================================================================
--- trunk/libavcodec/wavpack.c	(original)
+++ trunk/libavcodec/wavpack.c	Sat Jan 27 15:24:40 2007
@@ -141,8 +141,8 @@
 {
     int p, e, res;
 
-    if(k<1 || k>65535)return 0;
-    p = av_log2_16bit(k);
+    if(k<1)return 0;
+    p = av_log2(k);
     e = (1 << (p + 1)) - k - 1;
     res = p ? get_bits(gb, p) : 0;
     if(res >= e){




More information about the ffmpeg-cvslog mailing list