aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2021-08-13 19:14:54 +0200
committerPaul B Mahol <onemda@gmail.com>2021-08-13 19:18:24 +0200
commit96491430c2eee7b31d8409ed4812b09a4b175527 (patch)
treee9b48fff3684ad6ff87abebaf313f1c61e097165
parentb78fccd080d698fd7f8aa37031a1eb0536ac2eae (diff)
downloadffmpeg-96491430c2eee7b31d8409ed4812b09a4b175527.tar.gz
avcodec/smc: use uint8_t type instead of longer variant
-rw-r--r--libavcodec/smc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/smc.c b/libavcodec/smc.c
index 704d00859c..c18e7f6555 100644
--- a/libavcodec/smc.c
+++ b/libavcodec/smc.c
@@ -52,9 +52,9 @@ typedef struct SmcContext {
GetByteContext gb;
/* SMC color tables */
- unsigned char color_pairs[COLORS_PER_TABLE * CPAIR];
- unsigned char color_quads[COLORS_PER_TABLE * CQUAD];
- unsigned char color_octets[COLORS_PER_TABLE * COCTET];
+ uint8_t color_pairs[COLORS_PER_TABLE * CPAIR];
+ uint8_t color_quads[COLORS_PER_TABLE * CQUAD];
+ uint8_t color_octets[COLORS_PER_TABLE * COCTET];
uint32_t pal[256];
} SmcContext;
@@ -86,14 +86,14 @@ static int smc_decode_stream(SmcContext *s)
int i;
int chunk_size;
int buf_size = bytestream2_size(&s->gb);
- unsigned char opcode;
+ uint8_t opcode;
int n_blocks;
unsigned int color_flags;
unsigned int color_flags_a;
unsigned int color_flags_b;
unsigned int flag_mask;
- unsigned char * const pixels = s->frame->data[0];
+ uint8_t * const pixels = s->frame->data[0];
int image_size = height * s->frame->linesize[0];
int row_ptr = 0;