diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-02-10 20:40:31 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-02-10 20:41:00 +0100 |
commit | 0a4311dee55b3ac56282505f3f6fbbb63b8a7be1 (patch) | |
tree | 8517f543a06f699f7942310de7db436030aaaaa0 | |
parent | 8b0befe45195379391cb0dd5d515468014dbc313 (diff) | |
parent | c7769df178fd670156f1c11f6c8410ddd59bbfee (diff) | |
download | ffmpeg-0a4311dee55b3ac56282505f3f6fbbb63b8a7be1.tar.gz |
Merge commit 'c7769df178fd670156f1c11f6c8410ddd59bbfee'
* commit 'c7769df178fd670156f1c11f6c8410ddd59bbfee':
rpza: use fixed-width int types
Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/rpza.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/libavcodec/rpza.c b/libavcodec/rpza.c index 727c28e7ca..bc240fdcdd 100644 --- a/libavcodec/rpza.c +++ b/libavcodec/rpza.c @@ -34,6 +34,7 @@ * pixels shall be stored in native CPU endianness. */ +#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -73,13 +74,13 @@ static void rpza_decode_stream(RpzaContext *s) int stride = s->frame->linesize[0] / 2; int row_inc = stride - 4; int chunk_size; - unsigned char opcode; + uint8_t opcode; int n_blocks; - unsigned short colorA = 0, colorB; - unsigned short color4[4]; - unsigned char index, idx; - unsigned short ta, tb; - unsigned short *pixels = (unsigned short *)s->frame->data[0]; + uint16_t colorA = 0, colorB; + uint16_t color4[4]; + uint8_t index, idx; + uint16_t ta, tb; + uint16_t *pixels = (uint16_t *)s->frame->data[0]; int row_ptr = 0; int pixel_ptr = -4; |