Changeset 0ab20b57 in ffmpeg
- Timestamp:
-
Jul 30, 2024, 9:45:08 AM
(4 months ago)
- Author:
- Leo Izen <leo.izen@gmail.com>
- Children:
- 517e559a
- Parents:
- 63e90b33
- git-author:
- Leo Izen <leo.izen@gmail.com> (07/19/24 16:04:20)
- git-committer:
- Leo Izen <leo.izen@gmail.com> (07/30/24 09:45:08)
- Message:
-
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>
-
(No files)
-