[FFmpeg-devel] [PATCH] Fix floating point exception computing duration when no time-base is set
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
Size: 189 bytes
Desc: Digital signature
More information about the ffmpeg-devel