]> git.sesse.net Git - ffmpeg/commitdiff
use AVFormatContext with av_log
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Mon, 5 Mar 2007 10:07:42 +0000 (10:07 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Mon, 5 Mar 2007 10:07:42 +0000 (10:07 +0000)
Originally committed as revision 8245 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/swf.c

index 4f4fdb193945e98ae3da5d14c5a214d702d2fc5a..e2b8594fbcf60f48e1f127bc479aa13eb7f690d4 100644 (file)
@@ -267,7 +267,7 @@ static int swf_write_header(AVFormatContext *s)
                 }
                 audio_enc = enc;
             } 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;
             }
         } else {
@@ -276,7 +276,7 @@ static int swf_write_header(AVFormatContext *s)
                  enc->codec_id == CODEC_ID_MJPEG ) {
                 video_enc = enc;
             } 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;
             }
         }