mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-17 20:17:55 +02:00
fftools/ffmpeg_mux_init: avoid invalid reads in forced keyframe parsing
Fixes #10243 (cherry picked from commit 1e406692e5a1e6d9ca852f746088a5610ff80d14) Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
a3c93c03ad
commit
a0d6566498
@ -2063,7 +2063,7 @@ static void parse_forced_key_frames(KeyframeForceCtx *kf, const Muxer *mux,
|
||||
if (next)
|
||||
*next++ = 0;
|
||||
|
||||
if (!memcmp(p, "chapters", 8)) {
|
||||
if (strstr(p, "chapters") == p) {
|
||||
AVChapter * const *ch = mux->fc->chapters;
|
||||
unsigned int nb_ch = mux->fc->nb_chapters;
|
||||
int j;
|
||||
|
Loading…
x
Reference in New Issue
Block a user