Commit 256df8a2 authored by Michael Niedermayer's avatar Michael Niedermayer

libavformat/cdxl: fix duration in case of overflow

Fixes integer overflow
Fixes CID1260706
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 827af242
...@@ -185,7 +185,7 @@ static int cdxl_read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -185,7 +185,7 @@ static int cdxl_read_packet(AVFormatContext *s, AVPacket *pkt)
if(cdxl->framerate) if(cdxl->framerate)
st->duration = frames; st->duration = frames;
else else
st->duration = frames * audio_size; st->duration = frames * (int64_t)audio_size;
} }
st->start_time = 0; st->start_time = 0;
cdxl->video_stream_index = st->index; cdxl->video_stream_index = st->index;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment