Files
FFmpeg/libavcodec
Leo Izen 7bb5626fa7 avcodec/pngenc: fix sBIT writing for indexed-color PNGs
We currently write invalid sBIT entries for indexed PNGs, which by PNG
specification[1] must be 3-bytes long. The values also are capped at 8
for indexed-color PNGs, not the palette depth. This patch fixes both of
these issues previously fixed in the decoder, but not the encoder.

[1]: https://www.w3.org/TR/png-3/#11sBIT

Regression since: c125860892.

Signed-off-by: Leo Izen <leo.izen@gmail.com>
Reported-by: Ramiro Polla: <ramiro.polla@gmail.com>
2024-07-30 05:43:36 -04:00
..
2024-06-04 11:46:27 +02:00
2024-06-04 11:46:27 +02:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-02-27 00:11:21 +01:00
2024-02-27 00:11:21 +01:00
2024-06-08 00:22:40 +02:00
2024-06-08 00:22:40 +02:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-07-30 13:40:21 +08:00
2024-07-23 23:21:14 +02:00
2024-07-29 21:33:31 -03:00
2024-03-31 00:08:43 +01:00
2024-04-06 09:26:30 +02:00
2024-03-25 08:54:18 +01:00
2024-04-10 13:22:18 +02:00
2022-06-24 15:37:23 +08:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-15 12:51:15 +01:00
2024-03-15 12:51:15 +01:00
2024-02-12 22:00:03 +02:00
2024-03-31 00:08:43 +01:00
2022-10-17 09:56:47 +02:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-07-12 22:42:18 +02:00
2024-03-31 00:08:43 +01:00
2024-06-08 00:22:35 +02:00
2023-09-07 00:42:10 +02:00
2024-03-15 12:51:15 +01:00
2024-04-04 23:58:57 +02:00
2024-04-04 23:58:57 +02:00
2024-03-31 00:08:43 +01:00
2024-07-12 22:42:20 +02:00
2024-03-31 00:08:43 +01:00
2024-03-04 17:45:00 +01:00
2024-05-13 03:40:19 +02:00
2023-11-14 19:15:51 +02:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-05-13 03:40:17 +02:00
2024-06-13 20:36:09 -03:00
2024-03-31 00:08:43 +01:00
2024-03-10 13:51:37 +01:00
2024-06-04 11:46:27 +02:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-07-23 23:21:17 +02:00
2023-09-11 00:27:45 +02:00
2024-03-15 12:51:15 +01:00
2024-07-12 22:42:28 +02:00
2024-06-07 21:42:24 +02:00
2024-03-31 00:08:43 +01:00
2024-07-12 22:42:31 +02:00
2024-03-31 00:08:43 +01:00
2023-11-08 17:37:58 +11:00
2024-01-25 11:07:28 -05:00
2024-07-05 18:05:10 +08:00
2024-05-31 13:36:02 -03:00
2022-09-29 00:05:32 +02:00
2024-06-14 21:28:10 +03:00
2024-07-12 22:42:40 +02:00
2024-07-12 22:42:42 +02:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2017-02-21 00:40:20 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-04-29 15:30:25 +02:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-15 12:51:15 +01:00
2023-11-09 12:53:35 +01:00
2024-06-08 00:22:35 +02:00
2024-06-08 00:22:35 +02:00
2024-03-31 00:08:43 +01:00
2014-02-21 16:57:26 -03:00
2024-07-30 13:40:21 +08:00
2024-07-30 13:40:21 +08:00
2024-06-04 11:46:27 +02:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-06-20 18:58:39 +02:00
2024-05-03 18:00:53 +03:00
2024-05-03 18:00:53 +03:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-06-03 14:13:34 +02:00
2024-03-31 00:08:43 +01:00
2023-12-22 09:28:04 -03:00
2023-12-22 09:28:04 -03:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-15 12:51:15 +01:00
2024-03-31 00:08:43 +01:00
2024-06-12 12:07:49 +02:00
2024-06-20 18:58:38 +02:00
2023-12-08 17:20:48 +02:00
2023-12-08 17:20:48 +02:00
2024-07-30 13:40:21 +08:00
2024-03-31 00:08:43 +01:00
2024-05-19 22:12:54 +02:00
2022-10-26 20:30:25 +11:00
2024-06-07 21:42:24 +02:00
2024-04-19 13:18:04 +02:00
2024-04-29 20:46:05 +03:00
2024-04-29 20:46:05 +03:00
2024-04-19 13:18:04 +02:00
2024-04-19 13:18:04 +02:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00