mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-05 22:40:09 +01:00
This ensures consistent color conversion between double and u8 and guarantees that values remain consistent across different platforms, especially when x87 math is used. Note that libcairo also performs rounding internally when converting doubles to integers, see _cairo_color_double_to_short(). Fixes: fate-filter-drawvg-interpreter Signed-off-by: Kacper Michajłow <kasper93@gmail.com>