avcodec/lcldec: fix decoding of YUV444 sample

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Piotr Bandurski 2014-08-17 18:17:13 +02:00 committed by Michael Niedermayer
parent 94f60b6544
commit a3329a09f9
1 changed files with 2 additions and 1 deletions

View File

@ -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);