diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2010-05-03 22:08:31 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2010-05-03 22:08:31 +0000 |
commit | 4fe4bb6150a344bda47399ef9c38293e17e6a831 (patch) | |
tree | 892a4d00e2a5e198b1491302166a0a0d6d946003 | |
parent | 441ea0ce91d9df7e653c7a9598a62f230cf808c0 (diff) | |
download | ffmpeg-4fe4bb6150a344bda47399ef9c38293e17e6a831.tar.gz |
Revert r22974 int->unsigned parts that don't have any meaningful effect.
Originally committed as revision 23016 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/iff.c | 20 |
1 files changed, 10 insertions, 10 deletions
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"); |