diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2007-01-27 14:24:40 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2007-01-27 14:24:40 +0000 |
commit | 4b3b5a2337f851b7d532231436669faef1caceb8 (patch) | |
tree | b738a74294e4eeae2c6fade2c9e25e9c9e833911 /libavcodec/wavpack.c | |
parent | 8cb59bce97bea9d3732d1dc7f965a3db99585b8b (diff) | |
download | ffmpeg-4b3b5a2337f851b7d532231436669faef1caceb8.tar.gz |
Coded residual in WavPack may be > 0xFFFF
Originally committed as revision 7733 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/wavpack.c')
-rw-r--r-- | libavcodec/wavpack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c index 6f5d84bd0c..b462174da4 100644 --- a/libavcodec/wavpack.c +++ b/libavcodec/wavpack.c @@ -141,8 +141,8 @@ static av_always_inline int get_tail(GetBitContext *gb, int k) { 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){ |