Commit 8a11f38a authored by banan's avatar banan

Nellymoser 8KHZ flv muxing fix, patch by Alexander Wichers development at wichersdot nu

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15633 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4c76ef3b
......@@ -103,7 +103,11 @@ static int get_audio_flags(AVCodecContext *enc){
flags |= FLV_CODECID_ADPCM | FLV_SAMPLESSIZE_16BIT;
break;
case CODEC_ID_NELLYMOSER:
if (enc->sample_rate == 8000) {
flags |= FLV_CODECID_NELLYMOSER_8KHZ_MONO | FLV_SAMPLESSIZE_16BIT;
} else {
flags |= FLV_CODECID_NELLYMOSER | FLV_SAMPLESSIZE_16BIT;
}
break;
case 0:
flags |= enc->codec_tag<<4;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment