diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-06-21 09:19:23 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-06-22 19:03:24 +0200 |
commit | 9ee3334840c0d8564ca73dbfd6cd5a01bcdca79b (patch) | |
tree | b11b40dbda9b22034a0a569f0a4389d82ff3117e /libavcodec | |
parent | 896bb0d742a513b1bb5b9a770dbffd2cd436bed6 (diff) | |
download | ffmpeg-9ee3334840c0d8564ca73dbfd6cd5a01bcdca79b.tar.gz |
libspeexenc: add supported sample rates and channel layouts.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/libspeexenc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/libspeexenc.c b/libavcodec/libspeexenc.c index faf470eb6c..8a869a0973 100644 --- a/libavcodec/libspeexenc.c +++ b/libavcodec/libspeexenc.c @@ -67,6 +67,8 @@ #include <speex/speex.h> #include <speex/speex_header.h> #include <speex/speex_stereo.h> + +#include "libavutil/audioconvert.h" #include "libavutil/opt.h" #include "avcodec.h" #include "internal.h" @@ -334,6 +336,10 @@ AVCodec ff_libspeex_encoder = { .capabilities = CODEC_CAP_DELAY, .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE }, + .channel_layouts = (const uint64_t[]){ AV_CH_LAYOUT_MONO, + AV_CH_LAYOUT_STEREO, + 0 }, + .supported_samplerates = (const int[]){ 8000, 16000, 32000, 0 }, .long_name = NULL_IF_CONFIG_SMALL("libspeex Speex"), .priv_class = &class, .defaults = defaults, |