changeset 4421:41ee67dd4bef libavcodec

Coded residual in WavPack may be > 0xFFFF
author kostya
date Sat, 27 Jan 2007 14:24:40 +0000
parents 1e86a8f18693
children c867ae28d4de
files wavpack.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/wavpack.c	Sat Jan 27 14:23:55 2007 +0000
+++ b/wavpack.c	Sat Jan 27 14:24:40 2007 +0000
@@ -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){