[FFmpeg-devel] [PATCH] cdxl: fix duration
Piotr Bandurski
ami_stuff at o2.pl
Mon Dec 17 20:47:58 CET 2012
Hi,
> > @@ -129,6 +132,8 @@ static int cdxl_read_packet(AVFormatContext *s, AVPacket *pkt)
> > audio_size = AV_RB16(&cdxl->header[22]);
> > image_size = FFALIGN(width, 16) * height * cdxl->header[19] / 8;
> > video_size = palette_size + image_size;
> > +
> > + frames = cdxl->filesize / (audio_size + video_size);
>
> i think this could cause a division by 0
Sorry, fixed locally.
Regards
More information about the ffmpeg-devel
mailing list