Ogg: add support for Xiph's CELT (Opus) codec.

This patch also introduces CODEC_ID_CELT.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
This commit is contained in:
Nicolas George
2011-04-15 19:18:04 +02:00
parent 484a330890
commit e61b83d29e
6 changed files with 105 additions and 1 deletions

View File

@@ -2084,7 +2084,8 @@ static int has_codec_parameters(AVCodecContext *enc)
enc->codec_id == CODEC_ID_MP1 ||
enc->codec_id == CODEC_ID_MP2 ||
enc->codec_id == CODEC_ID_MP3 ||
enc->codec_id == CODEC_ID_SPEEX))
enc->codec_id == CODEC_ID_SPEEX ||
enc->codec_id == CODEC_ID_CELT))
return 0;
break;
case AVMEDIA_TYPE_VIDEO: