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

bwolowiec subversion
Fri May 2 21:35:31 CEST 2008


Author: bwolowiec
Date: Fri May  2 21:35:31 2008
New Revision: 13032

Log:
Nellymoser handling in FLV


Modified:
   trunk/libavformat/flvenc.c

Modified: trunk/libavformat/flvenc.c
==============================================================================
--- trunk/libavformat/flvenc.c	(original)
+++ trunk/libavformat/flvenc.c	Fri May  2 21:35:31 2008
@@ -39,6 +39,7 @@ static const AVCodecTag flv_audio_codec_
     {CODEC_ID_PCM_S16BE, FLV_CODECID_PCM    >> FLV_AUDIO_CODECID_OFFSET},
     {CODEC_ID_PCM_S16LE, FLV_CODECID_PCM_LE >> FLV_AUDIO_CODECID_OFFSET},
     {CODEC_ID_ADPCM_SWF, FLV_CODECID_ADPCM  >> FLV_AUDIO_CODECID_OFFSET},
+    {CODEC_ID_NELLYMOSER, FLV_CODECID_NELLYMOSER >> FLV_AUDIO_CODECID_OFFSET},
     {CODEC_ID_NONE,      0}
 };
 
@@ -95,6 +96,9 @@ static int get_audio_flags(AVCodecContex
     case CODEC_ID_ADPCM_SWF:
         flags |= FLV_CODECID_ADPCM | FLV_SAMPLESSIZE_16BIT;
         break;
+    case CODEC_ID_NELLYMOSER:
+        flags |= FLV_CODECID_NELLYMOSER | FLV_SAMPLESSIZE_16BIT;
+        break;
     case 0:
         flags |= enc->codec_tag<<4;
         break;




More information about the ffmpeg-cvslog mailing list