You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
mov: compute avg_frame_rate only if duration is known
Fixes an assert in fuzzed sample sample.mp4_s265930.
This commit is contained in:
@@ -2052,6 +2052,7 @@ static int mov_read_trak(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||
((double)st->codec->width * sc->height), INT_MAX);
|
||||
}
|
||||
|
||||
if (st->duration != AV_NOPTS_VALUE)
|
||||
av_reduce(&st->avg_frame_rate.num, &st->avg_frame_rate.den,
|
||||
sc->time_scale*st->nb_frames, st->duration, INT_MAX);
|
||||
|
||||
|
Reference in New Issue
Block a user