[Ffmpeg-cvslog] r8223 - trunk/libavformat/swf.c

Baptiste Coudurier baptiste.coudurier
Mon Mar 5 11:06:42 CET 2007


Alex Beregszaszi wrote:
> Hi,
> 
>> @@ -333,9 +265,18 @@ static int swf_write_header(AVFormatCont
>>      audio_enc = NULL;
>>      for(i=0;i<s->nb_streams;i++) {
>>          enc = s->streams[i]->codec;
>> -        if (enc->codec_type == CODEC_TYPE_AUDIO)
>> -            audio_enc = enc;
>> -        else {
>> +        if (enc->codec_type == CODEC_TYPE_AUDIO) {
>> +            if (enc->codec_id == CODEC_ID_MP3) {
>> +                if (!enc->frame_size) {
>> +                    av_log(s, AV_LOG_ERROR, "audio frame size not set\n");
>> +                    return -1;
>> +                }
>> +                audio_enc = enc;
>> +            } else {
>> +                av_log(enc, AV_LOG_ERROR, "SWF only supports MP3\n");
>> +                return -1;
>> +            }
> 
> SWF supports PCM too

Nellymoser, Adpcm too.

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A.                                    http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312




More information about the ffmpeg-cvslog mailing list