Browse Source

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

Originally committed as revision 15633 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Alexander Wichers Benjamin Larsson 16 years ago
parent
commit
8ddd280d2d
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      libavformat/flvenc.c

+ 5
- 1
libavformat/flvenc.c View File

@@ -103,7 +103,11 @@ static int get_audio_flags(AVCodecContext *enc){
flags |= FLV_CODECID_ADPCM | FLV_SAMPLESSIZE_16BIT;
break;
case CODEC_ID_NELLYMOSER:
flags |= FLV_CODECID_NELLYMOSER | FLV_SAMPLESSIZE_16BIT;
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;


Loading…
Cancel
Save