diff options
author | Jerome Martinez <jerome@mediaarea.net> | 2022-10-19 11:47:33 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2023-04-08 20:08:18 +0200 |
commit | 05e34523bc5db91618c0f1e9c8923eaf3ed1e74d (patch) | |
tree | 221b249c712939a31157c674d1ba9db75290da5b /libavfilter/x86 | |
parent | 12d1f7c4b783abcdbcb8e5a0c981601ec07f972f (diff) | |
download | ffmpeg-05e34523bc5db91618c0f1e9c8923eaf3ed1e74d.tar.gz |
avcodec/dpx: fix check of minimal data size for unpadded content
stride value is not relevant with unpadded content and the total count
of pixels (width x height) must be used instead of the rounding based on
width only then multiplied by height
unpadded_10bit value computing is moved sooner in the code in order to
be able to use it during computing of minimal content size. Also make sure to
only set it for 10bit.
Fix 'Overread buffer' error when the content is not lucky enough to have
(enough) padding bytes at the end for not being rejected by the formula
based on the stride value
Fixes ticket #10259.
Signed-off-by: Jerome Martinez <jerome@mediaarea.net>
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavfilter/x86')
0 files changed, 0 insertions, 0 deletions