aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-02-06 23:58:02 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-02-06 23:58:02 +0000
commita1fd944f7389dffbd649db7c68fd466ad32d998c (patch)
tree65aad0544860b5100e5b3c19ea329df0089a8eda
parent21ac1d47d136fbf95613189a8ec9fd6efbea9048 (diff)
downloadffmpeg-a1fd944f7389dffbd649db7c68fd466ad32d998c.tar.gz
workaround sign bug
Originally committed as revision 7864 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/wmaenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wmaenc.c b/libavcodec/wmaenc.c
index 6c687957c4..5f502d269c 100644
--- a/libavcodec/wmaenc.c
+++ b/libavcodec/wmaenc.c
@@ -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++;