avcodec/lcldec: fix decoding with AVFrame's negative linesize

This commit is contained in:
Paul B Mahol 2023-09-22 23:32:01 +02:00
parent 445167d5fd
commit 87cf1be905
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *frame,
const uint8_t *buf = avpkt->data; const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size; int buf_size = avpkt->size;
LclDecContext * const c = avctx->priv_data; LclDecContext * const c = avctx->priv_data;
unsigned int pixel_ptr; ptrdiff_t pixel_ptr;
int row, col; int row, col;
unsigned char *encoded = avpkt->data, *outptr; unsigned char *encoded = avpkt->data, *outptr;
uint8_t *y_out, *u_out, *v_out; uint8_t *y_out, *u_out, *v_out;