Unified · Split
| @@ -67,6 +67,8 @@ · 66 unmodified lines | |||
| 67 | #include <speex/speex.h> | 67 | #include <speex/speex.h> |
| 68 | #include <speex/speex_header.h> | 68 | #include <speex/speex_header.h> |
| 69 | #include <speex/speex_stereo.h> | 69 | #include <speex/speex_stereo.h> |
| 70 | |||
| 71 | #include "libavutil/audioconvert.h" | ||
| 70 | #include "libavutil/opt.h" | 72 | #include "libavutil/opt.h" |
| 71 | #include "avcodec.h" | 73 | #include "avcodec.h" |
| 72 | #include "internal.h" | 74 | #include "internal.h" |
| @@ -334,6 +336,10 @@ AVCodec ff_libspeex_encoder = { · 261 unmodified lines | |||
| 334 | .capabilities = CODEC_CAP_DELAY, | 336 | .capabilities = CODEC_CAP_DELAY, |
| 335 | .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, | 337 | .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, |
| 336 | AV_SAMPLE_FMT_NONE }, | 338 | AV_SAMPLE_FMT_NONE }, |
| 339 | .channel_layouts = (const uint64_t[]){ AV_CH_LAYOUT_MONO, | ||
| 340 | AV_CH_LAYOUT_STEREO, | ||
| 341 | 0 }, | ||
| 342 | .supported_samplerates = (const int[]){ 8000, 16000, 32000, 0 }, | ||
| 337 | .long_name = NULL_IF_CONFIG_SMALL("libspeex Speex"), | 343 | .long_name = NULL_IF_CONFIG_SMALL("libspeex Speex"), |
| 338 | .priv_class = &class, | 344 | .priv_class = &class, |
| 339 | .defaults = defaults, | 345 | .defaults = defaults, |