FFmpeg/libavcodec
Jerome Martinez 05e34523bc 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>
2023-04-08 20:08:18 +02:00
..
2023-03-26 01:46:39 +01:00
2023-03-26 01:46:48 +01:00
2022-11-06 14:39:35 +01:00
2022-11-06 14:39:35 +01:00
2022-11-06 14:39:35 +01:00
2022-11-06 14:39:35 +01:00
2022-11-06 14:39:27 +01:00
2023-03-02 21:32:00 +01:00
2022-11-06 14:39:27 +01:00
2022-11-06 14:39:27 +01:00
2023-01-30 20:57:37 +01:00
2022-10-24 00:46:56 +02:00
2023-04-02 23:54:51 +02:00
2022-11-06 14:39:39 +01:00
2022-11-06 14:39:40 +01:00
2022-11-06 14:39:40 +01:00
2022-11-06 14:39:40 +01:00
2022-11-06 14:39:34 +01:00
2023-04-02 16:22:14 +02:00
2022-10-17 09:56:47 +02:00
2022-10-22 17:28:01 +02:00
2023-02-09 15:35:14 +01:00
2022-11-06 14:39:36 +01:00
2023-02-09 15:35:08 +01:00
2022-11-06 14:39:36 +01:00
2022-11-06 14:39:36 +01:00
2022-11-06 14:39:37 +01:00
2022-11-06 14:39:37 +01:00
2022-11-06 14:39:36 +01:00
2022-11-06 14:39:36 +01:00
2022-11-06 14:39:36 +01:00
2023-01-27 19:45:36 +01:00
2023-01-26 20:37:14 +01:00
2022-10-20 06:57:30 +02:00
2023-01-11 12:12:27 +01:00
2022-10-24 00:46:58 +02:00
2023-04-02 23:54:52 +02:00
2023-04-02 23:54:51 +02:00
2023-02-09 15:35:14 +01:00
2023-02-09 15:35:14 +01:00
2023-01-31 09:00:56 +01:00
2022-11-06 14:39:38 +01:00
2022-10-27 13:17:07 +03:00
2023-04-01 00:37:25 -04:00
2023-04-01 00:37:55 -04:00
2022-11-06 14:39:42 +01:00
2023-02-09 15:35:14 +01:00
2022-11-06 14:39:35 +01:00
2023-01-17 12:54:54 +01:00
2023-01-11 12:12:26 +01:00
2022-11-12 11:23:04 +11:00
2022-12-24 23:43:45 +01:00
2022-10-14 16:14:24 +02:00
2022-11-06 14:39:36 +01:00
2022-10-17 09:51:47 +02:00
2022-11-06 14:39:41 +01:00
2022-10-26 20:30:25 +11:00
2022-12-08 17:48:21 +01:00
2022-11-06 14:39:39 +01:00
2022-11-06 14:39:39 +01:00