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

Baptiste Coudurier baptiste.coudurier
Mon Mar 5 12:00:56 CET 2007


Benjamin Larsson wrote:
> Alex Beregszaszi skrev:
>> 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.
>>>     
>>
>> What about adding support for PCM and ADPCM (one Benjamin's patch is
>> committed)? Even in such a way that when using a codec, the appropriate
>> minimum flash version is a requirement which implemented that codec
>> first. Or this is not worth the hassle?
>>
> 
> Don't forget flashsv also, the encoder is there, or doesn't swf support
> flashsv encoded material ?
> 

Yes I'll make sure that swf muxer can mux all codecs supported by ffmpeg.

-- 
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