mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
libspeexenc: add supported sample rates and channel layouts.
This commit is contained in:
parent
896bb0d742
commit
9ee3334840
@ -67,6 +67,8 @@
|
|||||||
#include <speex/speex.h>
|
#include <speex/speex.h>
|
||||||
#include <speex/speex_header.h>
|
#include <speex/speex_header.h>
|
||||||
#include <speex/speex_stereo.h>
|
#include <speex/speex_stereo.h>
|
||||||
|
|
||||||
|
#include "libavutil/audioconvert.h"
|
||||||
#include "libavutil/opt.h"
|
#include "libavutil/opt.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
@ -334,6 +336,10 @@ AVCodec ff_libspeex_encoder = {
|
|||||||
.capabilities = CODEC_CAP_DELAY,
|
.capabilities = CODEC_CAP_DELAY,
|
||||||
.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16,
|
.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16,
|
||||||
AV_SAMPLE_FMT_NONE },
|
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"),
|
.long_name = NULL_IF_CONFIG_SMALL("libspeex Speex"),
|
||||||
.priv_class = &class,
|
.priv_class = &class,
|
||||||
.defaults = defaults,
|
.defaults = defaults,
|
||||||
|
Loading…
Reference in New Issue
Block a user