[FFmpeg-cvslog] r15028 - in trunk/libavformat: flv.h flvdec.c

bcoudurier subversion
Fri Aug 29 19:06:35 CEST 2008


Author: bcoudurier
Date: Fri Aug 29 19:06:35 2008
New Revision: 15028

Log:
speex in flv demuxing

Modified:
   trunk/libavformat/flv.h
   trunk/libavformat/flvdec.c

Modified: trunk/libavformat/flv.h
==============================================================================
--- trunk/libavformat/flv.h	(original)
+++ trunk/libavformat/flv.h	Fri Aug 29 19:06:35 2008
@@ -78,6 +78,7 @@ enum {
     FLV_CODECID_NELLYMOSER_8HZ_MONO = 5 << FLV_AUDIO_CODECID_OFFSET,
     FLV_CODECID_NELLYMOSER          = 6 << FLV_AUDIO_CODECID_OFFSET,
     FLV_CODECID_AAC                 = 10<< FLV_AUDIO_CODECID_OFFSET,
+    FLV_CODECID_SPEEX               = 11<< FLV_AUDIO_CODECID_OFFSET,
 };
 
 enum {

Modified: trunk/libavformat/flvdec.c
==============================================================================
--- trunk/libavformat/flvdec.c	(original)
+++ trunk/libavformat/flvdec.c	Fri Aug 29 19:06:35 2008
@@ -53,6 +53,7 @@ static void flv_set_audio_codec(AVFormat
             acodec->codec_id = acodec->bits_per_sample == 8 ? CODEC_ID_PCM_S8 : CODEC_ID_PCM_S16LE; break;
         case FLV_CODECID_AAC  : acodec->codec_id = CODEC_ID_AAC;                                    break;
         case FLV_CODECID_ADPCM: acodec->codec_id = CODEC_ID_ADPCM_SWF;                              break;
+        case FLV_CODECID_SPEEX: acodec->codec_id = CODEC_ID_SPEEX;                                  break;
         case FLV_CODECID_MP3  : acodec->codec_id = CODEC_ID_MP3      ; astream->need_parsing = AVSTREAM_PARSE_FULL; break;
         case FLV_CODECID_NELLYMOSER_8HZ_MONO:
             acodec->sample_rate = 8000; //in case metadata does not otherwise declare samplerate




More information about the ffmpeg-cvslog mailing list