[FFmpeg-cvslog] r15633 - trunk/libavformat/flvenc.c

banan subversion
Sat Oct 18 14:10:08 CEST 2008


Author: banan
Date: Sat Oct 18 14:10:08 2008
New Revision: 15633

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

Modified:
   trunk/libavformat/flvenc.c

Modified: trunk/libavformat/flvenc.c
==============================================================================
--- trunk/libavformat/flvenc.c	(original)
+++ trunk/libavformat/flvenc.c	Sat Oct 18 14:10:08 2008
@@ -103,7 +103,11 @@ static int get_audio_flags(AVCodecContex
         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;




More information about the ffmpeg-cvslog mailing list