mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
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>
(cherry picked from commit 3eb4e28c26
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
c2d4ab2552
commit
8abcd8b124
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user