[FFmpeg-devel] Different behavior of ff_float_to_int16_c() and float_to_int16_sse()
Mon Mar 3 15:19:43 CET 2008
2008/3/3, Benjamin Larsson <banan at ludd.ltu.se>:
> Zuxy Meng wrote:
> > Hi,
> > Obviously, these two functions produce quite different output given
> > the same input. So IIRC whenever trying to use dsp.float_to_int16 we
> > have to check if it's the C version or the SIMD version, but in
> > libavcodec/dca.c and libavcodec/imc.c there aren't such checks. Bug or
> > have I missed something?
> No, it's a bug :(. Patch welcome.
Hmm the simplest approach is of course to avoid calling
float_to_int16() at all if we don't care about speed too much.
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6
More information about the ffmpeg-devel