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

Michael Niedermayer michaelni at gmx.at
Wed May 11 22:53:21 CEST 2011


On Wed, May 11, 2011 at 05:32:48PM +0200, 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.
>
> /Tomas

>  movenc.c |    4 ++++
>  1 file changed, 4 insertions(+)
> 90beab16977ca22a4285d83df1cc01bcab622d07  0001-Avoid-divide-by-zero-in-compute_avg_bitrate.patch
> From 7dbf9ac26ca677fc664a4569601bb0204e8410be Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= <tomas.hardin at codemill.se>
> Date: Wed, 11 May 2011 09:47:50 +0200
> Subject: [PATCH] Avoid divide by zero in compute_avg_bitrate()
> 
> This can happen if muxing a single AAC packet with duration = 0

LGTM

Ill apply in a few days unless baptiste has a better
suggestion or objections

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The real ebay dictionary, page 3
"Rare item" - "Common item with rare defect or maybe just a lie"
"Professional" - "'Toy' made in china, not functional except as doorstop"
"Experts will know" - "The seller hopes you are not an expert"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110511/9012a708/attachment.asc>


More information about the ffmpeg-devel mailing list