On Fri, Oct 26, 2012 at 11:13:49PM +0300, Martin Storsjö wrote: > This isn't too useful as a normal codec, but can be used in > voip style applications. The decoder updates the noise > generator parameters when a packet is given to it for decoding, > but if called with an empty packet, it generates more noise > according to the last parameters. > > --- > References: > https://tools.ietf.org/html/rfc3389 > http://www.itu.int/rec/T-REC-G.711-200002-I!AppII/en > http://webrtc.googlecode.com/svn/trunk/webrtc/modules/audio_coding/codecs/cng/webrtc_cng.c > --- > configure | 1 + > libavcodec/Makefile | 2 + > libavcodec/allcodecs.c | 1 + > libavcodec/avcodec.h | 1 + > libavcodec/codec_desc.c | 7 ++ > libavcodec/comfortnoise.c | 258 > +++++++++++++++++++++++++++++++++++++++++++++ > libavcodec/version.h | 2 +- > 7 files changed, 271 insertions(+), 1 deletion(-) > create mode 100644 libavcodec/comfortnoise.c
LGTM beside Diego's comment and some missing spaces around multiplication operator here and there (e.g. energy += samples[i]*samples[i];) _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel