[FFmpeg-devel] [PATCH] Fix floating point exception computing duration when no time-base is set

Michael Niedermayer michaelni
Mon Sep 14 15:32:41 CEST 2009

On Sun, Sep 13, 2009 at 09:59:10PM -0700, Art Clarke wrote:
> If a user sets a sample-rate on a AVCodecContext before reading a
> packet, but no time_base on the AVStream, libavformat crashes with a
> div-zero.  Instead it should just fail to compute duration.  Hence,
> the attached patch.

what is the reason that he did not set a time_base as well?

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Observe your enemies, for they first find out your faults. -- Antisthenes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090914/781c1079/attachment.pgp>

More information about the ffmpeg-devel mailing list