[FFmpeg-devel] [PATCH 1/2] avcodec/pngdec: use 8-bit sBIT cap for indexed PNGs per spec
Leo Izen
leo.izen at gmail.com
Sun Jul 28 23:18:58 EEST 2024
On 7/19/24 12:04 PM, Leo Izen wrote:
> 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 at gmail.com>
> Reported-by: Ramiro Polla <ramiro.polla at gmail.com>
> ---
Will merge soon.
- Leo Izen (Traneptora)
More information about the ffmpeg-devel
mailing list