Commit 85c5a9a8 authored by kostya's avatar kostya

Coded residual in WavPack may be > 0xFFFF

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7733 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a141b015
...@@ -141,8 +141,8 @@ static av_always_inline int get_tail(GetBitContext *gb, int k) ...@@ -141,8 +141,8 @@ static av_always_inline int get_tail(GetBitContext *gb, int k)
{ {
int p, e, res; int p, e, res;
if(k<1 || k>65535)return 0; if(k<1)return 0;
p = av_log2_16bit(k); p = av_log2(k);
e = (1 << (p + 1)) - k - 1; e = (1 << (p + 1)) - k - 1;
res = p ? get_bits(gb, p) : 0; res = p ? get_bits(gb, p) : 0;
if(res >= e){ if(res >= e){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment