[FFmpeg-devel] [PATCH] Fix floating point exception computing duration when no time-base is set
Mon Sep 14 16:12:40 CEST 2009
Michael Niedermayer <michaelni at gmx.at> writes:
> 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?
Indeed, setting one but not the other makes no sense at all. He got
what he deserved IMO.
mans at mansr.com
More information about the ffmpeg-devel