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

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


On Mon, Sep 14, 2009 at 10:16 AM, Reimar D?ffinger
<Reimar.Doeffinger at gmx.de> wrote:
> On Mon, Sep 14, 2009 at 10:13:56AM -0400, Ronald S. Bultje wrote:
>> 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?

Where's this key again. Oh, right here, it is:

"Patch welcome."



More information about the ffmpeg-devel mailing list