diff swf.c @ 370:845f9de2c883 libavformat

av_log() patch by (Michel Bardiaux <mbardiaux at peaktime dot be>)
author michael
date Wed, 03 Mar 2004 15:41:21 +0000
parents 81e90b91f457
children b69898ffc92a
line wrap: on
line diff
--- a/swf.c	Wed Feb 25 17:35:52 2004 +0000
+++ b/swf.c	Wed Mar 03 15:41:21 2004 +0000
@@ -341,7 +341,7 @@
             if ( enc->codec_id == CODEC_ID_FLV1 || enc->codec_id == CODEC_ID_MJPEG ) {
                 video_enc = enc;
             } else {
-                fprintf(stderr, "SWF only supports FLV1 and MJPEG\n");
+                av_log(enc, AV_LOG_ERROR, "SWF only supports FLV1 and MJPEG\n");
                 return -1;
             }
         }
@@ -479,7 +479,7 @@
     
     /* Flash Player limit */
     if ( swf->swf_frame_number == 16000 ) {
-        fprintf(stderr, "warning: Flash Player limit of 16000 frames reached\n");
+        av_log(enc, AV_LOG_INFO, "warning: Flash Player limit of 16000 frames reached\n");
     }
 
     /* Store video data in queue */
@@ -680,7 +680,7 @@
 
     /* Flash Player limit */
     if ( swf->swf_frame_number == 16000 ) {
-        fprintf(stderr, "warning: Flash Player limit of 16000 frames reached\n");
+        av_log(enc, AV_LOG_INFO, "warning: Flash Player limit of 16000 frames reached\n");
     }
 
     if (enc->codec_id == CODEC_ID_MP3 ) {
@@ -825,7 +825,7 @@
                 }
                 break;
             }
-            fprintf(stderr, "No media found in SWF\n");
+            av_log(s, AV_LOG_ERROR, "No media found in SWF\n");
             return -EIO;
         }
         if ( tag == TAG_VIDEOSTREAM && !vst) {