diff --git a/libavcodec/wmaenc.c b/libavcodec/wmaenc.c
index 6c687957c402c8aa02c0343124b728238e128e71..5f502d269c96140f325a29729badfd822b67e69a 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++;