Unified · Split
| @@ -67,6 +67,8 @@ · 66 unmodified lines | ||
| 67 | 67 | #include <speex/speex.h> |
| 68 | 68 | #include <speex/speex_header.h> |
| 69 | 69 | #include <speex/speex_stereo.h> |
| 70 | + | |
| 71 | +#include "libavutil/audioconvert.h" | |
| 70 | 72 | #include "libavutil/opt.h" |
| 71 | 73 | #include "avcodec.h" |
| 72 | 74 | #include "internal.h" |
| @@ -334,6 +336,10 @@ AVCodec ff_libspeex_encoder = { · 261 unmodified lines | ||
| 334 | 336 | .capabilities = CODEC_CAP_DELAY, |
| 335 | 337 | .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, |
| 336 | 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 | 343 | .long_name = NULL_IF_CONFIG_SMALL("libspeex Speex"), |
| 338 | 344 | .priv_class = &class, |
| 339 | 345 | .defaults = defaults, |