Signed-off-by: Martin Storsjö <martin@martin.st>
Martin Storsjö authored on 2011/12/15 22:10:57... | ... |
@@ -90,6 +90,7 @@ static int get_audio_flags(AVCodecContext *enc){ |
90 | 90 |
case 11025: |
91 | 91 |
flags |= FLV_SAMPLERATE_11025HZ; |
92 | 92 |
break; |
93 |
+ case 16000: //nellymoser only |
|
93 | 94 |
case 8000: //nellymoser only |
94 | 95 |
case 5512: //not mp3 |
95 | 96 |
if(enc->codec_id != CODEC_ID_MP3){ |
... | ... |
@@ -125,6 +126,8 @@ static int get_audio_flags(AVCodecContext *enc){ |
125 | 125 |
case CODEC_ID_NELLYMOSER: |
126 | 126 |
if (enc->sample_rate == 8000) { |
127 | 127 |
flags |= FLV_CODECID_NELLYMOSER_8KHZ_MONO | FLV_SAMPLESSIZE_16BIT; |
128 |
+ } else if (enc->sample_rate == 16000) { |
|
129 |
+ flags |= FLV_CODECID_NELLYMOSER_16KHZ_MONO | FLV_SAMPLESSIZE_16BIT; |
|
128 | 130 |
} else { |
129 | 131 |
flags |= FLV_CODECID_NELLYMOSER | FLV_SAMPLESSIZE_16BIT; |
130 | 132 |
} |