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

Tomas Härdin tomas.hardin at codemill.se
Wed May 11 14:25:08 CEST 2011


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.

/Tomas
-------------- 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/f9d67219/attachment.bin>


More information about the ffmpeg-devel mailing list