[FFmpeg-devel] [PATCH 1/2] avcodec/pngdec: avoid erroring with sBIT on indexed-color images

Leo Izen leo.izen at gmail.com
Thu Jul 18 15:59:41 EEST 2024


On 7/18/24 4:47 AM, Marton Balint wrote:
> 
> 
> On Fri, 12 Jul 2024, Leo Izen wrote:
> 
>> Indexed color images use three colors for sBIT, but the function
>> ff_png_get_nb_channels returns 1 in this case. We should avoid erroring
>> out on valid files in this scenario.
> 
> Please mention that this is a regression since 
> 84b454935fae2633a8a5dd075e22393f3e8f932f.
> 
> 
> LGTM, also please backport this to the affected branches!
> 
> Thanks,
> Marton
> 
> 

Sure, I'll put it in the commit message when I commit it, and I'll 
backport it to the branches that also contain that commit.

- Leo Izen (Traneptora)


More information about the ffmpeg-devel mailing list