1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

Set .supported_samplerates for mpeg audio encoders.

Originally committed as revision 22944 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2010-04-22 09:41:45 +00:00
parent 10d0f5e035
commit ddecab2097
2 changed files with 4 additions and 2 deletions

View File

@ -81,8 +81,8 @@ err:
return -1;
}
static const int sSampleRates[3] = {
44100, 48000, 32000
static const int sSampleRates[] = {
44100, 48000, 32000, 22050, 24000, 16000, 11025, 12000, 8000, 0
};
static const int sBitRates[2][3][15] = {
@ -224,5 +224,6 @@ AVCodec libmp3lame_encoder = {
MP3lame_encode_close,
.capabilities= CODEC_CAP_DELAY,
.sample_fmts = (const enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE},
.supported_samplerates= sSampleRates,
.long_name= NULL_IF_CONFIG_SMALL("libmp3lame MP3 (MPEG audio layer 3)"),
};

View File

@ -798,6 +798,7 @@ AVCodec mp2_encoder = {
MPA_encode_close,
NULL,
.sample_fmts = (const enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE},
.supported_samplerates= (const int[]){44100, 48000, 32000, 22050, 24000, 16000, 0},
.long_name = NULL_IF_CONFIG_SMALL("MP2 (MPEG audio layer 2)"),
};