Hello,

In attach a patch who fix this sample :
https://we.tl/HWgF0SFEll

This sample contain negative value in the red channel.

Before this patch, negative red float are converted to max red
instead of zero.

The previous hack doesn't seems to work for float to uint
so i add an explicit sign check

but i'm not familiar with float binary manipulation,
so maybe there is a better way to fix the problem

Comments welcome

Martin
Jokyo Images

Attachment: 0002-libavcodec-exr-fix-float-to-uint16-conversion-for-ne.patch
Description: Binary data

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to