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

Tomas Härdin tomas.hardin at codemill.se
Wed May 11 17:32:48 CEST 2011


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Avoid-divide-by-zero-in-compute_avg_bitrate.patch
Type: text/x-patch
Size: 857 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110511/2a4388a7/attachment.bin>

More information about the ffmpeg-devel mailing list