[FFmpeg-devel] [PATCH] Avoid divide by zero in compute_avg_bitrate()

Tomas Härdin tomas.hardin at codemill.se
Fri May 13 08:54:50 CEST 2011


Baptiste Coudurier skrev 2011-05-13 02:12:
> Hi Tomas,
>
> On 05/11/2011 05:25 AM, Tomas Härdin wrote:
>> Hi
>>
>> The attached patch fixes a possibility for movenc.c to SIGFPE if
>> trackDuration is zero when writing esds. This can happen if the user
>> manages to mux a single AAC packet with dts = 0 and duration = 0.
>
> How did you manage to have pkt->duration == 0 ?
> frame_size should be set for aac therefore I think pkt->duration cannot
> be 0.
> I'm curious.

I was messing with rebasing some of my experimental code and it 
suddendly broke. The code in question is my attempt at auto-faststart, 
something which I may have mentioned on IRC a while back.

Now that I've finally rebased it, I'll probably post it when time permits.

/Tomas


More information about the ffmpeg-devel mailing list