diff options
author | Michel Bardiaux <mbardiaux@peaktime.be> | 2003-11-03 13:26:22 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-11-03 13:26:22 +0000 |
commit | 9b879566789379631f02b83be367ca55c88a1ae9 (patch) | |
tree | ee2b274b74329eb94548dc6c85bc966485c75d2a /libavcodec/msvideo1.c | |
parent | 8bae9ddc91f6a083d420494bbd652d8258649066 (diff) | |
download | ffmpeg-9b879566789379631f02b83be367ca55c88a1ae9.tar.gz |
av_log() patch by (Michel Bardiaux <mbardiaux at peaktime dot be>)
Originally committed as revision 2469 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/msvideo1.c')
-rw-r--r-- | libavcodec/msvideo1.c | 6 |
1 files changed, 3 insertions, 3 deletions
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]); |