[FFmpeg-devel] [PATCH] Fixed division by 0 in g726 codec on invalid samplerate.
Wed Sep 3 00:47:16 CEST 2008
On Tue, Sep 02, 2008 at 11:30:58PM +0200, Laurent Aimar wrote:
> On Tue, Sep 02, 2008, Michael Niedermayer wrote:
> > 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.
> In my case it was a problem with the decoder for which you cannot check
> samplerate validity as some decoders will read it from the bitstream.
i see, then your patch is ok
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Everything should be made as simple as possible, but not simpler.
-- Albert Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
More information about the ffmpeg-devel