[FFmpeg-cvslog] avcodec/dxa: use uint8_t for type of arrays

Paul B Mahol git at videolan.org
Mon Sep 25 20:58:08 EEST 2023


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Sep 24 19:28:40 2023 +0200| [9e768c8133b4992c092d615400805b6ba63b5bc6] | committer: Paul B Mahol

avcodec/dxa: use uint8_t for type of arrays

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9e768c8133b4992c092d615400805b6ba63b5bc6
---

 libavcodec/dxa.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/dxa.c b/libavcodec/dxa.c
index 650502ad23..d33ac3c8b0 100644
--- a/libavcodec/dxa.c
+++ b/libavcodec/dxa.c
@@ -45,8 +45,8 @@ typedef struct DxaDecContext {
     uint32_t pal[256];
 } DxaDecContext;
 
-static const int shift1[6] = { 0, 8, 8, 8, 4, 4 };
-static const int shift2[6] = { 0, 0, 8, 4, 0, 4 };
+static const uint8_t shift1[6] = { 0, 8, 8, 8, 4, 4 };
+static const uint8_t shift2[6] = { 0, 0, 8, 4, 0, 4 };
 
 static int decode_13(AVCodecContext *avctx, DxaDecContext *c, uint8_t* dst,
                      int stride, uint8_t *src, int srcsize, uint8_t *ref)



More information about the ffmpeg-cvslog mailing list