From 9b879566789379631f02b83be367ca55c88a1ae9 Mon Sep 17 00:00:00 2001 From: Michel Bardiaux Date: Mon, 3 Nov 2003 13:26:22 +0000 Subject: av_log() patch by (Michel Bardiaux ) Originally committed as revision 2469 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/msvideo1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavcodec/msvideo1.c') diff --git a/libavcodec/msvideo1.c b/libavcodec/msvideo1.c index 3a51ebe2fc..207d4efeb7 100644 --- a/libavcodec/msvideo1.c +++ b/libavcodec/msvideo1.c @@ -42,7 +42,7 @@ #define LE_16(x) ((((uint8_t*)(x))[1] << 8) | ((uint8_t*)(x))[0]) #define CHECK_STREAM_PTR(n) \ if ((stream_ptr + n) > s->size ) { \ - printf (" MS Video-1 warning: stream_ptr out of bounds (%d >= %d)\n", \ + av_log(s->avctx, AV_LOG_ERROR, " MS Video-1 warning: stream_ptr out of bounds (%d >= %d)\n", \ stream_ptr + n, s->size); \ return; \ } @@ -322,12 +322,12 @@ static int msvideo1_decode_frame(AVCodecContext *avctx, s->size = buf_size; if (avctx->get_buffer(avctx, &s->frame)) { - printf (" MS Video-1 Video: get_buffer() failed\n"); + av_log(s->avctx, AV_LOG_ERROR, " MS Video-1 Video: get_buffer() failed\n"); return -1; } if (s->prev_frame.data[0] &&(s->frame.linesize[0] != s->prev_frame.linesize[0])) - printf (" MS Video-1: Buffer linesize changed: current %u, previous %u.\n" + av_log(avctx, AV_LOG_ERROR, " MS Video-1: Buffer linesize changed: current %u, previous %u.\n" " Expect wrong image and/or crash!\n", s->frame.linesize[0], s->prev_frame.linesize[0]); -- cgit v1.2.3