History

libspeexenc: add supported sample rates and channel layouts.

Anton Khirnov committed 14 years ago

Commit 9ee33341 parent 896bb0d1 file · +6 −0Browse files

Unified · Split

libavcodec/libspeexenc.c+6−0
@@ -67,6 +67,8 @@ · 66 unmodified lines
6767 #include <speex/speex.h>
6868 #include <speex/speex_header.h>
6969 #include <speex/speex_stereo.h>
70+
71+#include "libavutil/audioconvert.h"
7072 #include "libavutil/opt.h"
7173 #include "avcodec.h"
7274 #include "internal.h"
@@ -334,6 +336,10 @@ AVCodec ff_libspeex_encoder = { · 261 unmodified lines
334336 .capabilities = CODEC_CAP_DELAY,
335337 .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16,
336338 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 },
337343 .long_name = NULL_IF_CONFIG_SMALL("libspeex Speex"),
338344 .priv_class = &class,
339345 .defaults = defaults,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t