[FFmpeg-devel] [PATCH] Avoid divide by zero in compute_avg_bitrate()
baptiste.coudurier at gmail.com
Fri May 13 02:12:23 CEST 2011
On 05/11/2011 05:25 AM, Tomas Härdin wrote:
> 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
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer http://www.ffmpeg.org
More information about the ffmpeg-devel