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/yuv4mpeg.c | |
parent | 81c5f887485a3d46ec5948832acc7da8167b5248 (diff) | |
download | ffmpeg-streaming-bc874daea8273e2471f5a6f914cdc9cf97371a1c.zip ffmpeg-streaming-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/yuv4mpeg.c')
-rw-r--r-- | libavformat/yuv4mpeg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/yuv4mpeg.c b/libavformat/yuv4mpeg.c index 25eef07..54fbff5 100644 --- a/libavformat/yuv4mpeg.c +++ b/libavformat/yuv4mpeg.c @@ -77,7 +77,7 @@ static int yuv4_write_packet(AVFormatContext *s, int stream_index, if (*first_pkt) { *first_pkt = 0; if (yuv4_generate_header(s, buf2) < 0) { - fprintf(stderr, "Error. YUV4MPEG stream header write failed.\n"); + av_log(s, AV_LOG_ERROR, "Error. YUV4MPEG stream header write failed.\n"); return -EIO; } else { put_buffer(pb, buf2, strlen(buf2)); @@ -122,10 +122,10 @@ static int yuv4_write_header(AVFormatContext *s) return -EIO; if (s->streams[0]->codec.pix_fmt == PIX_FMT_YUV411P) { - fprintf(stderr, "Warning: generating non-standard 4:1:1 YUV stream, some mjpegtools might not work.\n"); + av_log(s, AV_LOG_ERROR, "Warning: generating non-standard 4:1:1 YUV stream, some mjpegtools might not work.\n"); } else if (s->streams[0]->codec.pix_fmt != PIX_FMT_YUV420P) { - fprintf(stderr, "ERROR: yuv4mpeg only handles 4:2:0, 4:1:1 YUV data. Use -pix_fmt to select one.\n"); + av_log(s, AV_LOG_ERROR, "ERROR: yuv4mpeg only handles 4:2:0, 4:1:1 YUV data. Use -pix_fmt to select one.\n"); return -EIO; } |