mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
libavformat/cdxl: fix duration in case of overflow
Fixes integer overflow Fixes CID1260706 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
827af24230
commit
256df8a2fa
@ -185,7 +185,7 @@ static int cdxl_read_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
if(cdxl->framerate)
|
||||
st->duration = frames;
|
||||
else
|
||||
st->duration = frames * audio_size;
|
||||
st->duration = frames * (int64_t)audio_size;
|
||||
}
|
||||
st->start_time = 0;
|
||||
cdxl->video_stream_index = st->index;
|
||||
|
Loading…
Reference in New Issue
Block a user