1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00
FFmpeg/libavcodec
Leo Izen 0ab20b5788
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: c125860892e931d9b10f88ace73c91484815c3a8.

Signed-off-by: Leo Izen <leo.izen@gmail.com>
Reported-by: Ramiro Polla: <ramiro.polla@gmail.com>
2024-07-30 05:45:08 -04:00
..
2024-03-15 12:51:15 +01:00
2024-07-25 20:34:29 +02:00
2024-02-27 00:11:21 +01:00
2024-02-27 00:11:21 +01:00
2024-07-25 20:36:19 +02:00
2024-03-25 08:54:18 +01:00
2024-03-15 12:51:15 +01:00
2024-03-15 12:51:15 +01:00
2024-05-22 22:04:29 +02:00
2024-07-25 20:34:34 +02:00
2024-03-15 12:51:15 +01:00
2024-03-15 12:51:15 +01:00
2024-03-15 12:51:15 +01:00
2024-07-25 20:34:34 +02:00
2024-03-15 12:51:15 +01:00
2024-03-04 17:45:00 +01:00
2024-05-22 22:04:40 +02:00
2024-05-22 22:04:39 +02:00
2024-03-10 13:51:37 +01:00
2024-07-25 20:36:22 +02:00
2024-03-15 12:51:15 +01:00
2024-03-15 12:51:15 +01:00
2024-07-25 20:34:35 +02:00
2024-07-25 20:34:06 +02:00
2024-07-25 20:34:35 +02:00
2024-02-29 10:30:16 +01:00
2024-03-12 14:37:49 +01:00
2024-07-25 20:34:37 +02:00
2024-03-15 12:51:15 +01:00
2024-03-15 12:51:15 +01:00
2024-03-15 12:51:15 +01:00
2024-06-24 00:10:37 +02:00
2024-03-26 23:19:49 +01:00
2024-03-12 14:37:49 +01:00
2024-03-15 12:51:15 +01:00
2024-03-27 01:04:53 +01:00
2024-05-22 22:04:41 +02:00
2024-07-25 20:34:06 +02:00