Browse Source

Handle case of get_bits(0)

Originally committed as revision 6365 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Kostya Shishkov 18 years ago
parent
commit
8db0c25d95
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/wavpack.c

+ 1
- 1
libavcodec/wavpack.c View File

@@ -142,7 +142,7 @@ static always_inline int get_tail(GetBitContext *gb, int k)
if(k<1 || k>65535)return 0;
p = av_log2_16bit(k);
e = (1 << (p + 1)) - k - 1;
res = get_bits(gb, p);
res = p ? get_bits(gb, p) : 0;
if(res >= e){
res = (res<<1) - e + get_bits1(gb);
}


Loading…
Cancel
Save