workaround sign bug
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 6 Feb 2007 23:58:02 +0000 (23:58 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 6 Feb 2007 23:58:02 +0000 (23:58 +0000)
Originally committed as revision 7864 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/wmaenc.c

index 6c68795..5f502d2 100644 (file)
@@ -290,7 +290,7 @@ static int encode_block(WMADecodeContext *s, float (*src_coefs)[BLOCK_MAX_SIZE],
                         put_bits(&s->pb, coef_nb_bits, abs_level);
                         put_bits(&s->pb, s->frame_len_bits, run);
                     }
-                    put_bits(&s->pb, 1, level > 0);
+                    put_bits(&s->pb, 1, level < 0); //FIXME the sign is fliped somewhere
                     run=0;
                 }else{
                     run++;