projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edf9b2f
)
A try to fix the regressions.
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 19 Feb 2009 17:54:23 +0000
(17:54 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 19 Feb 2009 17:54:23 +0000
(17:54 +0000)
Originally committed as revision 17459 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/wmaenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/wmaenc.c
b/libavcodec/wmaenc.c
index 195c2702c6ee4859f349d544ab893958d99216df..4977ab2a1e10174c41def7afe9a5665f467958f2 100644
(file)
--- a/
libavcodec/wmaenc.c
+++ b/
libavcodec/wmaenc.c
@@
-287,6
+287,10
@@
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);
}