aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/lcldec.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2023-09-22 23:32:01 +0200
committerPaul B Mahol <onemda@gmail.com>2023-09-22 23:38:00 +0200
commit87cf1be90508465674fbdf55e350a03070e0d6af (patch)
tree5a5828b312c08a2522b99c57632aca5a6d816a7a /libavcodec/lcldec.c
parent445167d5fd64c685f9d908cba12de40c1d58d875 (diff)
downloadffmpeg-87cf1be90508465674fbdf55e350a03070e0d6af.tar.gz
avcodec/lcldec: fix decoding with AVFrame's negative linesize
Diffstat (limited to 'libavcodec/lcldec.c')
-rw-r--r--libavcodec/lcldec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c
index ed78d9d570..11e28683ba 100644
--- a/libavcodec/lcldec.c
+++ b/libavcodec/lcldec.c
@@ -167,7 +167,7 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *frame,
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
LclDecContext * const c = avctx->priv_data;
- unsigned int pixel_ptr;
+ ptrdiff_t pixel_ptr;
int row, col;
unsigned char *encoded = avpkt->data, *outptr;
uint8_t *y_out, *u_out, *v_out;