diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2003-12-05 15:54:56 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2003-12-05 15:54:56 +0000 |
commit | 7958ce62d6ae127ee9b8664c8afae5754063389f (patch) | |
tree | 658e11edf004b0ae3ac3114ffe8ed5f8604ccefd /src/libxinevdec/msrle.c | |
parent | b529e4b1f1668c03d3cb35c0c742f301b8c415db (diff) | |
download | xine-lib-7958ce62d6ae127ee9b8664c8afae5754063389f.tar.gz xine-lib-7958ce62d6ae127ee9b8664c8afae5754063389f.tar.bz2 |
cleanup phase II. use xprintf when it's relevant, use xine_xmalloc when it's relevant too. Small other little fix (can't remember). Change few internal function prototype because it xine_t pointer need to be used if some xine's internal sections. NOTE: libdvd{nav,read} is still too noisy, i will take a look to made it quit, without invasive changes. To be continued...
CVS patchset: 5844
CVS date: 2003/12/05 15:54:56
Diffstat (limited to 'src/libxinevdec/msrle.c')
-rw-r--r-- | src/libxinevdec/msrle.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/libxinevdec/msrle.c b/src/libxinevdec/msrle.c index a9398c85b..10c013c02 100644 --- a/src/libxinevdec/msrle.c +++ b/src/libxinevdec/msrle.c @@ -21,7 +21,7 @@ * For more information on the MS RLE format, visit: * http://www.pcisys.net/~melanson/codecs/ * - * $Id: msrle.c,v 1.21 2003/11/16 23:33:48 f1rmb Exp $ + * $Id: msrle.c,v 1.22 2003/12/05 15:55:01 f1rmb Exp $ */ #include <stdio.h> @@ -113,14 +113,16 @@ static void decode_msrle8(msrle_decoder_t *this) { /* copy pixels from encoded stream */ if ((row_ptr + pixel_ptr + stream_byte > frame_size) || (row_ptr < 0)) { - printf(_("MS RLE: frame ptr just went out of bounds (1)\n")); + xprintf(this->stream->xine, XINE_VERBOSITY_DEBUG, + "MS RLE: frame ptr just went out of bounds (1)\n"); return; } rle_code = stream_byte; extra_byte = stream_byte & 0x01; if (stream_ptr + rle_code + extra_byte > this->size) { - printf(_("MS RLE: stream ptr just went out of bounds (2)\n")); + xprintf(this->stream->xine, XINE_VERBOSITY_DEBUG, + "MS RLE: stream ptr just went out of bounds (2)\n"); return; } @@ -143,7 +145,8 @@ static void decode_msrle8(msrle_decoder_t *this) { /* decode a run of data */ if ((row_ptr + pixel_ptr + stream_byte > frame_size) || (row_ptr < 0)) { - printf(_("MS RLE: frame ptr just went out of bounds (2)\n")); + xprintf(this->stream->xine, XINE_VERBOSITY_DEBUG, + "MS RLE: frame ptr just went out of bounds (2)\n"); return; } @@ -164,8 +167,9 @@ static void decode_msrle8(msrle_decoder_t *this) { /* one last sanity check on the way out */ if (stream_ptr < this->size) - printf(_("MS RLE: ended frame decode with bytes left over (%d < %d)\n"), - stream_ptr, this->size); + xprintf(this->stream->xine, XINE_VERBOSITY_DEBUG, + "MS RLE: ended frame decode with bytes left over (%d < %d)\n", + stream_ptr, this->size); } /************************************************************************** |