Browse Source

wmaenc: fix off by 1 error in quantization loop

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.0
Michael Niedermayer 13 years ago
parent
commit
799df083f3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/wmaenc.c

+ 1
- 1
libavcodec/wmaenc.c View File

@@ -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…
Cancel
Save