[FFmpeg-devel] [PATCH] Fixed division by 0 in g726 codec on invalid samplerate.
Tue Sep 2 23:30:58 CEST 2008
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.
More information about the ffmpeg-devel