aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/pgxdec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-04-15 17:05:45 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-04-28 01:28:14 +0200
commita655b0a50656326d9b0bcec9df3b5a0f4c32da15 (patch)
tree6b040c101d64ed3229bfa41b8e88266579d37e05 /libavcodec/pgxdec.c
parent84a80ac15de802dfea32d83206deafadbd1947cb (diff)
downloadffmpeg-a655b0a50656326d9b0bcec9df3b5a0f4c32da15.tar.gz
avcodec/pgxdec: Use unsigned types for unsigned values
Both AV_PIX_FMT_GRAY8 and AV_PIX_FMT_GRAY16 use unsigned values, not signed ones. The fact that the input might be signed in some cases in the original format doesn't change this. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/pgxdec.c')
-rw-r--r--libavcodec/pgxdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/pgxdec.c b/libavcodec/pgxdec.c
index 29de103167..52e2c2a36c 100644
--- a/libavcodec/pgxdec.c
+++ b/libavcodec/pgxdec.c
@@ -107,8 +107,8 @@ error:
} \
} \
-WRITE_FRAME(8, int8_t, byte)
-WRITE_FRAME(16, int16_t, be16)
+WRITE_FRAME(8, uint8_t, byte)
+WRITE_FRAME(16, uint16_t, be16)
static int pgx_decode_frame(AVCodecContext *avctx, AVFrame *p,
int *got_frame, AVPacket *avpkt)