diff options
author | Michel Bardiaux <mbardiaux@peaktime.be> | 2004-03-03 15:41:21 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-03-03 15:41:21 +0000 |
commit | bc874daea8273e2471f5a6f914cdc9cf97371a1c (patch) | |
tree | 967f82d529194e1dcc9865caedc0378950ec6f2f /libavformat/swf.c | |
parent | 81c5f887485a3d46ec5948832acc7da8167b5248 (diff) | |
download | ffmpeg-bc874daea8273e2471f5a6f914cdc9cf97371a1c.tar.gz |
av_log() patch by (Michel Bardiaux <mbardiaux at peaktime dot be>)
Originally committed as revision 2840 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/swf.c')
-rw-r--r-- | libavformat/swf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/swf.c b/libavformat/swf.c index fd70e54521..a4f199ef3b 100644 --- a/libavformat/swf.c +++ b/libavformat/swf.c @@ -341,7 +341,7 @@ static int swf_write_header(AVFormatContext *s) 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 @@ static int swf_write_video(AVFormatContext *s, /* 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 @@ static int swf_write_audio(AVFormatContext *s, /* 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 @@ static int swf_read_header(AVFormatContext *s, AVFormatParameters *ap) } 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) { |