Changeset 63e90b33 in ffmpeg

Timestamp:
Jul 30, 2024, 9:45:01 AM (4 months ago)
Author:
Leo Izen <leo.izen@gmail.com>
Children:
0ab20b57
Parents:
c77a3b8d
git-author:
Leo Izen <leo.izen@gmail.com> (07/19/24 16:04:19)
git-committer:
Leo Izen <leo.izen@gmail.com> (07/30/24 09:45:01)
Message:

avcodec/pngdec: use 8-bit sBIT cap for indexed PNGs per spec

The PNG specification[1] says that sBIT entries must be at most the bit
depth specified in IHDR, unless the PNG is indexed-color, in which case
sBIT must be between 1 and 8. We should not reject valid sBITs on PNGs
with indexed color.

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

Regression since 84b454935fae2633a8a5dd075e22393f3e8f932f.

Signed-off-by: Leo Izen <leo.izen@gmail.com>
Reported-by: Ramiro Polla <ramiro.polla@gmail.com>

(No files)

Note: See TracChangeset for help on using the changeset viewer.