mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-30 23:10:32 +00:00
wmaenc: fix off by 1 error in quantization loop
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e704ab3d5f
commit
799df083f3
@ -379,7 +379,7 @@ static int encode_superframe(AVCodecContext *avctx, AVPacket *avpkt,
|
||||
for(i=64; i; i>>=1){
|
||||
int error = encode_frame(s, s->coefs, avpkt->data, avpkt->size,
|
||||
total_gain - i);
|
||||
if(error<0)
|
||||
if(error<=0)
|
||||
total_gain-= i;
|
||||
}
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user