summaryrefslogtreecommitdiff
path: root/libavcodec/allcodecs.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-10-23 00:02:41 +0300
committerMartin Storsjö <martin@martin.st>2012-10-29 22:00:43 +0200
commit9b500b8f6c9806f3979f9d1fb874b7f4a802c656 (patch)
tree88427520e9cc033bbe6e6c9e506856e440cf3dd1 /libavcodec/allcodecs.c
parent8b25a20efbf4ca261bcd3327a385330eca775ec6 (diff)
avcodec: Add a RFC 3389 comfort noise codec
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. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/allcodecs.c')
-rw-r--r--libavcodec/allcodecs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c
index b175fbbdc2..e5fb351ec7 100644
--- a/libavcodec/allcodecs.c
+++ b/libavcodec/allcodecs.c
@@ -91,6 +91,7 @@ void avcodec_register_all(void)
REGISTER_DECODER (CINEPAK, cinepak);
REGISTER_ENCDEC (CLJR, cljr);
REGISTER_DECODER (CLLC, cllc);
+ REGISTER_ENCDEC (COMFORTNOISE, comfortnoise);
REGISTER_DECODER (CSCD, cscd);
REGISTER_DECODER (CYUV, cyuv);
REGISTER_DECODER (DFA, dfa);