diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-29 20:53:56 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-29 20:53:56 +0100 |
commit | 256df8a2fafad64fc8797c2742d1a7187fd25b4c (patch) | |
tree | 3d11d6bc695cd4d65b0b493ea83a7ed405707427 | |
parent | 827af242308e4670f7e2c9a9607d40c9bfe23b27 (diff) | |
download | ffmpeg-256df8a2fafad64fc8797c2742d1a7187fd25b4c.tar.gz |
libavformat/cdxl: fix duration in case of overflow
Fixes integer overflow
Fixes CID1260706
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/cdxl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |