aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2023-03-09 13:57:14 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2023-04-18 01:31:37 +0200
commit3eb4e28c26c3bce608214f392ab1fe6ee28ec1df (patch)
treee31a83ba8f3b42f19cd48b81f83398d0df77d9ea
parentc3625ccfcd74bacff2ec6764dea8ef2beb5e9ef7 (diff)
downloadffmpeg-3eb4e28c26c3bce608214f392ab1fe6ee28ec1df.tar.gz
libavcodec/lcldec: width and height should not be unsigned
Computations like col < width - 3 will not work with unsigned width=1 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/lcldec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c
index 5cc0a29bcd..95206eeb69 100644
--- a/libavcodec/lcldec.c
+++ b/libavcodec/lcldec.c
@@ -169,8 +169,8 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *frame,
int row, col;
unsigned char *encoded = avpkt->data, *outptr;
uint8_t *y_out, *u_out, *v_out;
- unsigned int width = avctx->width; // Real image width
- unsigned int height = avctx->height; // Real image height
+ int width = avctx->width; // Real image width
+ int height = avctx->height; // Real image height
unsigned int mszh_dlen;
unsigned char yq, y1q, uq, vq;
int uqvq, ret;