diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2022-11-02 20:00:38 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2023-06-04 20:18:10 +0200 |
commit | 7c70adcc37f81afdad284f94ea98abbff486e2e5 (patch) | |
tree | 5df385fdb0bbfb9b6a0b8facb5dd024a5e602263 /libavcodec/hevc_mp4toannexb_bsf.c | |
parent | 80201f0dc1a922015639e572a5e29c26e74ec81b (diff) | |
download | ffmpeg-7c70adcc37f81afdad284f94ea98abbff486e2e5.tar.gz |
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>
Diffstat (limited to 'libavcodec/hevc_mp4toannexb_bsf.c')
0 files changed, 0 insertions, 0 deletions