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

Ronald S. Bultje rsbultje
Mon Sep 14 16:13:56 CEST 2009

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.


More information about the ffmpeg-devel mailing list