Michael Niedermayer
d1c90886cc
swscale/output: Bias 16bps output calculations to improve non overflowing range
Fixes: integer overflow
Fixes: ./ffmpeg -f rawvideo -video_size 66x64 -pixel_format yuva420p10le -i ~/videos/overflow_input_w66h64.yuva420p10le -filter_complex "scale=flags=bicubic+full_chroma_int+full_chroma_inp+bitexact+accurate_rnd:in_color_matrix=bt2020:out_color_matrix=bt2020:in_range=full:out_range=full,format=rgba64[out]" -pixel_format rgba64 -map '[out]' -y overflow_w66h64.png
Found-by: Drew Dunne <asdunne@google.com>
Tested-by: Drew Dunne <asdunne@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 0f0afc7fb5d30c40108d81b320823d8f5c9fbedc)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2023-04-15 22:37:58 +02:00
..
2022-11-04 14:32:19 +02:00
2020-05-15 23:33:46 +03:00
2019-10-04 08:58:17 +03:00
2019-05-13 13:39:49 +02:00
2020-11-02 00:51:05 +01:00
2021-10-06 14:41:42 +02:00
2020-05-05 20:06:58 +02:00
2017-05-04 19:59:30 -03:00
2016-11-20 13:00:22 +01:00
2023-04-15 22:37:58 +02:00
2018-06-10 03:22:59 +02:00
2020-05-15 23:38:17 +03:00
2020-05-15 23:38:17 +03:00
2021-10-06 14:41:41 +02:00
2020-05-05 20:06:58 +02:00
2020-05-05 20:06:58 +02:00
2020-05-05 20:06:58 +02:00
2016-08-02 22:15:25 -07:00
2020-05-12 01:00:28 +02:00
2020-06-08 22:49:04 +02:00
2020-04-27 23:34:31 +02:00
2020-04-12 16:36:47 +02:00