This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit dd86debdbcec9ec057304c845859771bd6a10c8c Author: Baptiste Coudurier <[email protected]> AuthorDate: Sat Nov 21 11:34:07 2026 -0800 Commit: Baptiste Coudurier <[email protected]> CommitDate: Sun Nov 22 23:53:29 2026 +0000 avformat/cafdec: skip chunks before data on non-seekable input Otherwise the rest of a free or partly read chunk is parsed as the next chunk header on pipes. Signed-off-by: Baptiste Coudurier <[email protected]> --- libavformat/cafdec.c | 4 +++- tests/fate/caf.mak | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/libavformat/cafdec.c b/libavformat/cafdec.c index 0f9f5ff882..8a5be1537d 100644 --- a/libavformat/cafdec.c +++ b/libavformat/cafdec.c @@ -452,7 +452,9 @@ static int read_header(AVFormatContext *s) break; } - if (size > 0 && (pb->seekable & AVIO_SEEKABLE_NORMAL)) { + /* skip the rest of the chunk, without skipping data on pipes */ + if (size > 0 && (tag != MKBETAG('d','a','t','a') || + (pb->seekable & AVIO_SEEKABLE_NORMAL))) { if (pos > INT64_MAX - size) return AVERROR_INVALIDDATA; avio_seek(pb, pos + size, SEEK_SET); diff --git a/tests/fate/caf.mak b/tests/fate/caf.mak index c8587e1131..e24d859c0e 100644 --- a/tests/fate/caf.mak +++ b/tests/fate/caf.mak @@ -7,6 +7,14 @@ fate-caf-ima4-demux: CMD = framecrc -i $(TARGET_SAMPLES)/caf/ima4.caf -c copy FATE_CAF_FFMPEG-$(call DEMMUX, CAF, FRAMECRC, PIPE_PROTOCOL) += fate-caf-ilbc-demux fate-caf-ilbc-demux: CMD = framecrc -i $(TARGET_SAMPLES)/caf/ilbc.caf -c copy +FATE_CAF_FFMPEG-$(call DEMMUX, CAF, FRAMECRC, PIPE_PROTOCOL) += fate-caf-ima4-pipe +fate-caf-ima4-pipe: CMD = cat $(SAMPLES)/caf/ima4.caf | framecrc -i pipe: -c copy +fate-caf-ima4-pipe: REF = $(SRC_PATH)/tests/ref/fate/caf-ima4-demux + +FATE_CAF_FFMPEG-$(call DEMMUX, CAF, FRAMECRC, PIPE_PROTOCOL) += fate-caf-ilbc-pipe +fate-caf-ilbc-pipe: CMD = cat $(SAMPLES)/caf/ilbc.caf | framecrc -i pipe: -c copy +fate-caf-ilbc-pipe: REF = $(SRC_PATH)/tests/ref/fate/caf-ilbc-demux + FATE_CAF_FFMPEG_FFPROBE-$(call REMUX, CAF, MOV_DEMUXER) += fate-caf-alac-remux fate-caf-alac-remux: CMD = transcode m4a $(TARGET_SAMPLES)/lossless-audio/inside.m4a caf "-map 0:a -c copy -metadata major_brand= " "-c copy -t 0.2" "-show_entries format_tags" -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
