avformat/apngdec: allow other chunks between fcTL and fdAT/IDAT
The APNG demuxer incorrectly assumed that fcTL chunks must be
immediately followed by fdAT or IDAT chunks. Per PNG specification
section 14.3.2, ancillary chunks may appear in any order relative
to other ancillary chunks.
This change
change allows intermediate chunks (like tEXt) between fcTL
and frame data chunks, fixing playback of APNG files with metadata.
Fixes #11012.
Signed-off-by: devjeonghwan
---
libavformat/apngdec.c | 21 +
1 file changed, 17 insertions(+), 4 deletions(-)
diff --git a/libavformat
PR #20208 opened by devjeonghwan
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20208
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20208.patch
The APNG demuxer incorrectly assumed that fcTL chunks must be immediately
followed by fdAT or IDAT chunks.
Per PNG specification section