ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Mon Dec 29 20:53:56 2014 +0100| [256df8a2fafad64fc8797c2742d1a7187fd25b4c] | committer: Michael Niedermayer
libavformat/cdxl: fix duration in case of overflow Fixes integer overflow Fixes CID1260706 Signed-off-by: Michael Niedermayer <michae...@gmx.at> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=256df8a2fafad64fc8797c2742d1a7187fd25b4c --- libavformat/cdxl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/cdxl.c b/libavformat/cdxl.c index 2f1c87c..5bdf44b 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; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog