mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 08:42:39 +00:00
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.
This commit is contained in:
parent
85cf49fab7
commit
c3da9f5060
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user