Mercurial > libavcodec.hg
changeset 1807:db067aa9fc2b libavcodec
Use av_log
author | rtognimp |
---|---|
date | Sat, 14 Feb 2004 17:11:46 +0000 |
parents | 2721e1859e19 |
children | 9d860b33fd54 |
files | qtrle.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/qtrle.c Sat Feb 14 13:37:58 2004 +0000 +++ b/qtrle.c Sat Feb 14 17:11:46 2004 +0000 @@ -54,14 +54,14 @@ #define CHECK_STREAM_PTR(n) \ if ((stream_ptr + n) > s->size) { \ - printf ("QT RLE problem: stream_ptr out of bounds (%d >= %d)\n", \ + av_log (s->avctx, AV_LOG_INFO, "Problem: stream_ptr out of bounds (%d >= %d)\n", \ stream_ptr + n, s->size); \ return; \ } #define CHECK_PIXEL_PTR(n) \ if (pixel_ptr + n > pixel_limit) { \ - printf ("QT RLE problem: pixel_ptr >= pixel_limit (%d >= %d)\n", \ + av_log (s->avctx, AV_LOG_INFO, "Problem: pixel_ptr >= pixel_limit (%d >= %d)\n", \ pixel_ptr + n, pixel_limit); \ return; \ } \ @@ -428,7 +428,7 @@ break; default: - printf ("QT RLE: Unsupported colorspace: %d bits/sample?\n", + av_log (avctx, AV_LOG_ERROR, "Unsupported colorspace: %d bits/sample?\n", avctx->bits_per_sample); break; } @@ -457,7 +457,7 @@ s->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE | FF_BUFFER_HINTS_READABLE; if (avctx->reget_buffer(avctx, &s->frame)) { - printf ("reget_buffer() failed\n"); + av_log (s->avctx, AV_LOG_ERROR, "reget_buffer() failed\n"); return -1; } @@ -501,7 +501,7 @@ break; default: - printf ("QT RLE: Unsupported colorspace: %d bits/sample?\n", + av_log (s->avctx, AV_LOG_ERROR, "Unsupported colorspace: %d bits/sample?\n", avctx->bits_per_sample); break; }