summaryrefslogtreecommitdiff
path: root/libavcodec/wmaenc.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-03-17 11:42:49 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-03-17 11:46:15 -0400
commitc3da9f506038aea306dd1b9ce48db94ca251a08d (patch)
tree891be718bfebe40fe0ab4ac28a10ebb29aa605d3 /libavcodec/wmaenc.c
parent85cf49fab7d4451dd68e5748862c319ee221df6f (diff)
wmaenc: remove bit-exact hack
It may have improved cross-platform stability, but wasn't the only place in the encoder with bitexact issues. It is no longer needed because we have FATE tests for float encoders using fuzzy comparison.
Diffstat (limited to 'libavcodec/wmaenc.c')
-rw-r--r--libavcodec/wmaenc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavcodec/wmaenc.c b/libavcodec/wmaenc.c
index 6fd3494016..b9c40d8276 100644
--- a/libavcodec/wmaenc.c
+++ b/libavcodec/wmaenc.c
@@ -306,10 +306,6 @@ static int encode_block(WMACodecContext *s, float (*src_coefs)[BLOCK_MAX_SIZE],
if(1<<coef_nb_bits <= abs_level)
return -1;
-
- //Workaround minor rounding differences for the regression tests, FIXME we should find and replace the problematic float by fixpoint for reg tests
- if(abs_level == 0x71B && (s->avctx->flags & CODEC_FLAG_BITEXACT)) abs_level=0x71A;
-
put_bits(&s->pb, coef_nb_bits, abs_level);
put_bits(&s->pb, s->frame_len_bits, run);
}