From 4fe4bb6150a344bda47399ef9c38293e17e6a831 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Mon, 3 May 2010 22:08:31 +0000 Subject: Revert r22974 int->unsigned parts that don't have any meaningful effect. Originally committed as revision 23016 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/iff.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'libavcodec/iff.c') diff --git a/libavcodec/iff.c b/libavcodec/iff.c index be13f4eac5..2989bb0ead 100644 --- a/libavcodec/iff.c +++ b/libavcodec/iff.c @@ -32,7 +32,7 @@ typedef struct { AVFrame frame; - unsigned planesize; + int planesize; uint8_t * planebuf; } IffContext; @@ -41,7 +41,7 @@ typedef struct { */ int ff_cmap_read_palette(AVCodecContext *avctx, uint32_t *pal) { - unsigned count, i; + int count, i; if (avctx->bits_per_coded_sample > 8) { av_log(avctx, AV_LOG_ERROR, "bit_per_coded_sample > 8 not supported\n"); @@ -98,8 +98,8 @@ static av_cold int decode_init(AVCodecContext *avctx) static void decodeplane8(uint8_t *dst, const uint8_t *const buf, int buf_size, int bps, int plane) { GetBitContext gb; - unsigned int i; - const unsigned b = (buf_size * 8) + bps - 1; + int i; + const int b = (buf_size * 8) + bps - 1; init_get_bits(&gb, buf, buf_size * 8); for(i = 0; i < b; i++) { dst[i] |= get_bits1(&gb) << plane; @@ -117,8 +117,8 @@ static void decodeplane8(uint8_t *dst, const uint8_t *const buf, int buf_size, i static void decodeplane32(uint32_t *dst, const uint8_t *const buf, int buf_size, int bps, int plane) { GetBitContext gb; - unsigned i; - const unsigned b = (buf_size * 8) + bps - 1; + int i; + const int b = (buf_size * 8) + bps - 1; init_get_bits(&gb, buf, buf_size * 8); for(i = 0; i < b; i++) { dst[i] |= get_bits1(&gb) << plane; @@ -131,9 +131,9 @@ static int decode_frame_ilbm(AVCodecContext *avctx, { IffContext *s = avctx->priv_data; const uint8_t *buf = avpkt->data; - unsigned buf_size = avpkt->size; + int buf_size = avpkt->size; const uint8_t *buf_end = buf+buf_size; - unsigned y, plane; + int y, plane; if (avctx->reget_buffer(avctx, &s->frame) < 0){ av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); @@ -171,9 +171,9 @@ static int decode_frame_byterun1(AVCodecContext *avctx, { IffContext *s = avctx->priv_data; const uint8_t *buf = avpkt->data; - unsigned buf_size = avpkt->size; + int buf_size = avpkt->size; const uint8_t *buf_end = buf+buf_size; - unsigned y, plane, x; + int y, plane, x; if (avctx->reget_buffer(avctx, &s->frame) < 0){ av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); -- cgit v1.2.3