summaryrefslogtreecommitdiff
path: root/libavcodec/codec_desc.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/codec_desc.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/codec_desc.c')
-rw-r--r--libavcodec/codec_desc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/codec_desc.c b/libavcodec/codec_desc.c
index 818a35e804..a8ff314394 100644
--- a/libavcodec/codec_desc.c
+++ b/libavcodec/codec_desc.c
@@ -2112,6 +2112,13 @@ static const AVCodecDescriptor codec_descriptors[] = {
.long_name = NULL_IF_CONFIG_SMALL("Opus (Opus Interactive Audio Codec)"),
.props = AV_CODEC_PROP_LOSSY,
},
+ {
+ .id = AV_CODEC_ID_COMFORT_NOISE,
+ .type = AVMEDIA_TYPE_AUDIO,
+ .name = "comfortnoise",
+ .long_name = NULL_IF_CONFIG_SMALL("RFC 3389 Comfort Noise"),
+ .props = AV_CODEC_PROP_LOSSY,
+ },
/* subtitle codecs */
{