From 256df8a2fafad64fc8797c2742d1a7187fd25b4c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 29 Dec 2014 20:53:56 +0100 Subject: [PATCH] libavformat/cdxl: fix duration in case of overflow Fixes integer overflow Fixes CID1260706 Signed-off-by: Michael Niedermayer --- libavformat/cdxl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/cdxl.c b/libavformat/cdxl.c index 2f1c87cab1..5bdf44bcd1 100644 --- a/libavformat/cdxl.c +++ b/libavformat/cdxl.c @@ -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;