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:
Michael Niedermayer 2014-12-29 20:53:56 +01:00
parent 827af24230
commit 256df8a2fa
1 changed files with 1 additions and 1 deletions

View File

@ -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;