Skip to content
Snippets Groups Projects
Commit 256df8a2 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

libavformat/cdxl: fix duration in case of overflow


Fixes integer overflow
Fixes CID1260706

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 827af242
No related branches found
No related tags found
No related merge requests found
...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment