aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Bandurski <ami_stuff@o2.pl>2014-08-17 18:17:13 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-08-17 18:53:06 +0200
commita3329a09f93455a44ff3c9c64886c4da1f66bcfb (patch)
treef2339bd0f3db57d4f02e283679f77308e7c41093
parent94f60b65446b37132d7bd644ab2c4627d9488295 (diff)
downloadffmpeg-a3329a09f93455a44ff3c9c64886c4da1f66bcfb.tar.gz
avcodec/lcldec: fix decoding of YUV444 sample
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/lcldec.c3
1 files changed, 2 insertions, 1 deletions
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);