Commit 22d16ad1 authored by rtognimp's avatar rtognimp

Use av_log


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2784 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4720da2c
...@@ -54,14 +54,14 @@ typedef struct QtrleContext { ...@@ -54,14 +54,14 @@ typedef struct QtrleContext {
#define CHECK_STREAM_PTR(n) \ #define CHECK_STREAM_PTR(n) \
if ((stream_ptr + n) > s->size) { \ 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); \ stream_ptr + n, s->size); \
return; \ return; \
} }
#define CHECK_PIXEL_PTR(n) \ #define CHECK_PIXEL_PTR(n) \
if (pixel_ptr + n > pixel_limit) { \ 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); \ pixel_ptr + n, pixel_limit); \
return; \ return; \
} \ } \
...@@ -428,7 +428,7 @@ static int qtrle_decode_init(AVCodecContext *avctx) ...@@ -428,7 +428,7 @@ static int qtrle_decode_init(AVCodecContext *avctx)
break; break;
default: 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); avctx->bits_per_sample);
break; break;
} }
...@@ -457,7 +457,7 @@ static int qtrle_decode_frame(AVCodecContext *avctx, ...@@ -457,7 +457,7 @@ static int qtrle_decode_frame(AVCodecContext *avctx,
s->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | s->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE |
FF_BUFFER_HINTS_REUSABLE | FF_BUFFER_HINTS_READABLE; FF_BUFFER_HINTS_REUSABLE | FF_BUFFER_HINTS_READABLE;
if (avctx->reget_buffer(avctx, &s->frame)) { 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; return -1;
} }
...@@ -501,7 +501,7 @@ static int qtrle_decode_frame(AVCodecContext *avctx, ...@@ -501,7 +501,7 @@ static int qtrle_decode_frame(AVCodecContext *avctx,
break; break;
default: 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); avctx->bits_per_sample);
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment