libavformat/cdxl: fix duration in case of overflow

Fixes integer overflow
Fixes CID1260706

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/101/head
Michael Niedermayer 10 years ago
parent 827af24230
commit 256df8a2fa
  1. 2
      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;

Loading…
Cancel
Save