From a3329a09f93455a44ff3c9c64886c4da1f66bcfb Mon Sep 17 00:00:00 2001 From: Piotr Bandurski Date: Sun, 17 Aug 2014 18:17:13 +0200 Subject: [PATCH] avcodec/lcldec: fix decoding of YUV444 sample Signed-off-by: Michael Niedermayer --- libavcodec/lcldec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c index 491a0e9d02..ca62b42109 100644 --- a/libavcodec/lcldec.c +++ b/libavcodec/lcldec.c @@ -191,7 +191,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPac case AV_CODEC_ID_MSZH: switch (c->compression) { case COMP_MSZH: - if (c->imgtype == IMGTYPE_RGB24 && len == width * height * 3) { + if (c->imgtype == IMGTYPE_RGB24 && len == width * height * 3 || + c->imgtype == IMGTYPE_YUV111 && len == width * height * 3) { ; } else if (c->flags & FLAG_MULTITHREAD) { mthread_inlen = AV_RL32(buf);