diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c index 5225ff0552..c4b81460db 100644 --- a/libavcodec/lcldec.c +++ b/libavcodec/lcldec.c @@ -512,7 +512,7 @@ static av_cold int decode_init(AVCodecContext *avctx) } /* Detect compression method */ - c->compression = avctx->extradata[5]; + c->compression = (int8_t)avctx->extradata[5]; switch (avctx->codec_id) { case CODEC_ID_MSZH: switch (c->compression) {