[FFmpeg-devel] [PATCH v3 0/2] PNG sBIT chunk support

Leo Izen leo.izen at gmail.com
Wed Mar 22 05:26:24 EET 2023


Add support to the PNG decoder and encoder to support sBIT chunks,
by using AVCodecContext->bits_per_raw_sample.

Changes from v2:
- Added chunk size check to make sure there's enough bytes left

Leo Izen (2):
  avcodec/pngdec: support sBIT chunks
  avcodec/pngenc: write sBIT chunks

 libavcodec/pngdec.c | 48 +++++++++++++++++++++++++++++++++++++++++++++
 libavcodec/pngenc.c |  6 ++++++
 2 files changed, 54 insertions(+)

-- 
2.40.0



More information about the ffmpeg-devel mailing list