[FFmpeg-cvslog] avformat/segafilm: Set keyframe
Michael Niedermayer
git at videolan.org
Thu Feb 27 19:06:52 EET 2025
ffmpeg | branch: release/4.3 | Michael Niedermayer <michael at niedermayer.cc> | Tue Aug 6 18:02:58 2024 +0200| [0e4eaa307f4ab0b575f6a96c60c2675f0b0b8ce1] | committer: Michael Niedermayer
avformat/segafilm: Set keyframe
Fixes: use of uninitialized value
Fixes: 70871/clusterfuzz-testcase-minimized-ffmpeg_dem_SEGAFILM_fuzzer-5883617752973312
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 4dc7dfe65aaa21801a907c66592b92b05da921dc)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0e4eaa307f4ab0b575f6a96c60c2675f0b0b8ce1
---
libavformat/segafilm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/segafilm.c b/libavformat/segafilm.c
index 01422bdee6..b4f9af68da 100644
--- a/libavformat/segafilm.c
+++ b/libavformat/segafilm.c
@@ -239,6 +239,7 @@ static int film_read_header(AVFormatContext *s)
else if (film->audio_type != AV_CODEC_ID_NONE)
audio_frame_counter += (film->sample_table[i].sample_size /
(film->audio_channels * film->audio_bits / 8));
+ film->sample_table[i].keyframe = 1;
} else {
film->sample_table[i].stream = film->video_stream_index;
film->sample_table[i].pts = AV_RB32(&scratch[8]) & 0x7FFFFFFF;
More information about the ffmpeg-cvslog
mailing list