* [FFmpeg-devel] [PATCH] dxa patch
@ 2023-09-24 17:31 Paul B Mahol
0 siblings, 0 replies; only message in thread
From: Paul B Mahol @ 2023-09-24 17:31 UTC (permalink / raw)
To: FFmpeg development discussions and patches
[-- Attachment #1: Type: text/plain, Size: 10 bytes --]
Attached.
[-- Attachment #2: 0001-avcodec-dxa-use-uint8_t-for-type-of-arrays.patch --]
[-- Type: text/x-patch, Size: 943 bytes --]
From 8863580694665ff33312829209b7aabc41ae1855 Mon Sep 17 00:00:00 2001
From: Paul B Mahol <onemda@gmail.com>
Date: Sun, 24 Sep 2023 19:28:40 +0200
Subject: [PATCH] avcodec/dxa: use uint8_t for type of arrays
Signed-off-by: Paul B Mahol <onemda@gmail.com>
---
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)
--
2.42.0
[-- Attachment #3: Type: text/plain, Size: 251 bytes --]
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-09-24 17:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-24 17:31 [FFmpeg-devel] [PATCH] dxa patch Paul B Mahol
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git