aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2024-08-06 18:02:58 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2024-08-14 18:20:58 +0200
commit4dc7dfe65aaa21801a907c66592b92b05da921dc (patch)
tree3035e5337672c991e8b32e5c81fcde43f9665cc2
parent0f4524f07a93bf9061f9034ffa510d4bf9b582e8 (diff)
downloadffmpeg-4dc7dfe65aaa21801a907c66592b92b05da921dc.tar.gz
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@niedermayer.cc>
-rw-r--r--libavformat/segafilm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/segafilm.c b/libavformat/segafilm.c
index 96a50c0e3b..e72d872f96 100644
--- a/libavformat/segafilm.c
+++ b/libavformat/segafilm.c
@@ -234,6 +234,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;