1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

View File

@ -191,7 +191,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPac
case AV_CODEC_ID_MSZH: case AV_CODEC_ID_MSZH:
switch (c->compression) { switch (c->compression) {
case COMP_MSZH: 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) { } else if (c->flags & FLAG_MULTITHREAD) {
mthread_inlen = AV_RL32(buf); mthread_inlen = AV_RL32(buf);