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

Reimar Döffinger Reimar.Doeffinger
Mon Sep 14 16:16:22 CEST 2009


On Mon, Sep 14, 2009 at 10:13:56AM -0400, Ronald S. Bultje wrote:
> Hi Art,
> 
> On Mon, Sep 14, 2009 at 12:59 AM, Art Clarke <aclarke at xuggle.com> 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.
> 
> In fact, we've already discussed this patch several times in different
> contexts, it's always been rejected.

Maybe the documentation is still unclear?



More information about the ffmpeg-devel mailing list