Commit fd66c316 authored by bcoudurier's avatar bcoudurier

use AVFormatContext with av_log

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8245 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a8fece3b
...@@ -267,7 +267,7 @@ static int swf_write_header(AVFormatContext *s) ...@@ -267,7 +267,7 @@ static int swf_write_header(AVFormatContext *s)
} }
audio_enc = enc; audio_enc = enc;
} else { } else {
av_log(enc, AV_LOG_ERROR, "SWF muxer only supports MP3\n"); av_log(s, AV_LOG_ERROR, "SWF muxer only supports MP3\n");
return -1; return -1;
} }
} else { } else {
...@@ -276,7 +276,7 @@ static int swf_write_header(AVFormatContext *s) ...@@ -276,7 +276,7 @@ static int swf_write_header(AVFormatContext *s)
enc->codec_id == CODEC_ID_MJPEG ) { enc->codec_id == CODEC_ID_MJPEG ) {
video_enc = enc; video_enc = enc;
} else { } else {
av_log(enc, AV_LOG_ERROR, "SWF muxer only supports VP6, FLV1 and MJPEG\n"); av_log(s, AV_LOG_ERROR, "SWF muxer only supports VP6, FLV1 and MJPEG\n");
return -1; return -1;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment