mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 08:42:39 +00:00
Coded residual in WavPack may be > 0xFFFF
Originally committed as revision 7733 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
8cb59bce97
commit
4b3b5a2337
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user