diff options
author | Alexander Wichers <development@wichers.nu> | 2008-10-18 12:10:08 +0000 |
---|---|---|
committer | Benjamin Larsson <banan@ludd.ltu.se> | 2008-10-18 12:10:08 +0000 |
commit | 8ddd280d2d8eea8ca22a39cfed17b17f4b420cac (patch) | |
tree | 52ce35baa60d8c4bce31a62230e7ddcf86b1e9c0 /libavformat/flvenc.c | |
parent | 88cb61bb0cf2efe2f2015ae4da76f941920d009a (diff) | |
download | ffmpeg-8ddd280d2d8eea8ca22a39cfed17b17f4b420cac.tar.gz |
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
Diffstat (limited to 'libavformat/flvenc.c')
-rw-r--r-- | libavformat/flvenc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index ac5840727f..fc9fc1b58f 100644 --- a/libavformat/flvenc.c +++ b/libavformat/flvenc.c @@ -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; |