mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/mov: fix avg_frame_rate calculation
Fixes integer overflow Fixes Ticket3390 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
b4d308c04f
commit
05e9e3342f
@ -3419,7 +3419,7 @@ static int mov_read_header(AVFormatContext *s)
|
||||
}
|
||||
if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO && sc->nb_frames_for_fps > 0 && sc->duration_for_fps > 0)
|
||||
av_reduce(&st->avg_frame_rate.num, &st->avg_frame_rate.den,
|
||||
sc->time_scale*sc->nb_frames_for_fps, sc->duration_for_fps, INT_MAX);
|
||||
sc->time_scale*(int64_t)sc->nb_frames_for_fps, sc->duration_for_fps, INT_MAX);
|
||||
}
|
||||
|
||||
if (mov->trex_data) {
|
||||
|
Loading…
Reference in New Issue
Block a user