[FFmpeg-devel] [PATCH] Fixed division by 0 in g726 codec on invalid samplerate.
Wed Sep 3 01:08:10 CEST 2008
On Wed, Sep 03, 2008 at 12:47:16AM +0200, Michael Niedermayer wrote:
> 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
More information about the ffmpeg-devel