On 10/12/2012 09:46 PM, Justin Ruggles wrote:
> We cannot clip to INT_MAX because that value cannot be exactly
> represented by a float value and ends up overflowing during conversion
> anyway. We need to use a slightly smaller float value, which ends up
> with slightly inaccurate results for samples which clip or nearly clip,
> but it is close enough. Using doubles as intermediates in the conversion
> would be more accurate, but it takes about twice as much time.
> ---
>  libavresample/x86/audio_convert.asm |    8 +++++++-
>  1 files changed, 7 insertions(+), 1 deletions(-)

Works decently for my testcase.

lu

_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to