[Ffmpeg-cvslog] r8223 - trunk/libavformat/swf.c
Alex Beregszaszi
alex
Mon Mar 5 09:45:09 CET 2007
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
--
Alex Beregszaszi
More information about the ffmpeg-cvslog
mailing list