Commit 8b7e5d278c for ffmpeg
commit 8b7e5d278c3e0008de31b61f6d50893260967755
Author: zhang xingxing <2388969553@qq.com>
Date: Thu Oct 15 04:01:57 2026 +0200
avformat/idroqdec: skip the whole body of a repeated RoQ_INFO chunk
The RoQ player in the Quake III Arena source (code/client/cl_cin.c) also
continues after the declared size of every RoQ_INFO chunk.
Fixes: yyLBi9GsHV9w
Fixes: swarm-RoQ_INFO-re-entry-skips-fixed-size-ignoring-chunk_size-e7709a
Stream desynchronization Replicated through UnModified FFmpeg
Found-by: zhang xingxing <2388969553@qq.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
diff --git a/libavformat/idroqdec.c b/libavformat/idroqdec.c
index 861338ceec..76d96196ba 100644
--- a/libavformat/idroqdec.c
+++ b/libavformat/idroqdec.c
@@ -142,7 +142,7 @@ static int roq_read_packet(AVFormatContext *s,
break;
}
/* don't care about this chunk anymore */
- avio_skip(pb, RoQ_CHUNK_PREAMBLE_SIZE);
+ avio_skip(pb, chunk_size);
break;
case RoQ_QUAD_CODEBOOK: