Commit 92c2d63f authored by rtognimp's avatar rtognimp

Fix colors for YV12 case (u/v planes are swapped)

Fixes locoRGBA.avi (the file is really YV12, even if it's called RGBA)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4111 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 79e88b7c
......@@ -188,11 +188,11 @@ static int decode_frame(AVCodecContext *avctx,
decoded = loco_decode_plane(l, p->data[0], avctx->width, avctx->height,
p->linesize[0], buf, buf_size, 1);
buf += decoded; buf_size -= decoded;
decoded = loco_decode_plane(l, p->data[1], avctx->width / 2, avctx->height / 2,
p->linesize[1], buf, buf_size, 1);
buf += decoded; buf_size -= decoded;
decoded = loco_decode_plane(l, p->data[2], avctx->width / 2, avctx->height / 2,
p->linesize[2], buf, buf_size, 1);
buf += decoded; buf_size -= decoded;
decoded = loco_decode_plane(l, p->data[1], avctx->width / 2, avctx->height / 2,
p->linesize[1], buf, buf_size, 1);
break;
case LOCO_CRGB: case LOCO_RGB:
decoded = loco_decode_plane(l, p->data[0], avctx->width, avctx->height,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment