[FFmpeg-devel] [PATCH] Fixed division by 0 in g726 codec on invalid samplerate.

Michael Niedermayer michaelni
Tue Sep 2 22:19:24 CEST 2008


On Tue, Sep 02, 2008 at 07:47:52PM +0200, Laurent Aimar wrote:
> The attached path prevents a division by 0 with the g726 codec when the
> configured samplerate is 0.

This could be checked in avcodec_open() so as to cover all audio encoders.


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

it is not once nor twice but times without number that the same ideas make
their appearance in the world. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080902/db8fa0d7/attachment.pgp>



More information about the ffmpeg-devel mailing list