mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
flvenc: Support muxing 16 kHz nellymoser
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
055c61b857
commit
bd2ff1a8bc
@ -90,6 +90,7 @@ static int get_audio_flags(AVCodecContext *enc){
|
|||||||
case 11025:
|
case 11025:
|
||||||
flags |= FLV_SAMPLERATE_11025HZ;
|
flags |= FLV_SAMPLERATE_11025HZ;
|
||||||
break;
|
break;
|
||||||
|
case 16000: //nellymoser only
|
||||||
case 8000: //nellymoser only
|
case 8000: //nellymoser only
|
||||||
case 5512: //not mp3
|
case 5512: //not mp3
|
||||||
if(enc->codec_id != CODEC_ID_MP3){
|
if(enc->codec_id != CODEC_ID_MP3){
|
||||||
@ -125,6 +126,8 @@ static int get_audio_flags(AVCodecContext *enc){
|
|||||||
case CODEC_ID_NELLYMOSER:
|
case CODEC_ID_NELLYMOSER:
|
||||||
if (enc->sample_rate == 8000) {
|
if (enc->sample_rate == 8000) {
|
||||||
flags |= FLV_CODECID_NELLYMOSER_8KHZ_MONO | FLV_SAMPLESSIZE_16BIT;
|
flags |= FLV_CODECID_NELLYMOSER_8KHZ_MONO | FLV_SAMPLESSIZE_16BIT;
|
||||||
|
} else if (enc->sample_rate == 16000) {
|
||||||
|
flags |= FLV_CODECID_NELLYMOSER_16KHZ_MONO | FLV_SAMPLESSIZE_16BIT;
|
||||||
} else {
|
} else {
|
||||||
flags |= FLV_CODECID_NELLYMOSER | FLV_SAMPLESSIZE_16BIT;
|
flags |= FLV_CODECID_NELLYMOSER | FLV_SAMPLESSIZE_16BIT;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user