aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-01-08 14:00:13 +0100
committerAnton Khirnov <anton@khirnov.net>2014-02-10 15:21:35 +0100
commitc7769df178fd670156f1c11f6c8410ddd59bbfee (patch)
tree1e70a6b81b1b3814f86187b6da68bd8580bebe7c
parente1218ce9149aad0ae9770a32a78d77ad2210bd64 (diff)
downloadffmpeg-c7769df178fd670156f1c11f6c8410ddd59bbfee.tar.gz
rpza: use fixed-width int types
-rw-r--r--libavcodec/rpza.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/libavcodec/rpza.c b/libavcodec/rpza.c
index 585b1eafda..03427068cd 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 = 0;