# HG changeset patch # User rtognimp # Date 1112911348 0 # Node ID 6eaebf1fbd74b8d6e558080f6b3ba593d7b0b229 # Parent b5b09255f7c3921e0389fb842123e8bc0c01cf58 Fix colors for YV12 case (u/v planes are swapped) Fixes locoRGBA.avi (the file is really YV12, even if it's called RGBA) diff -r b5b09255f7c3 -r 6eaebf1fbd74 loco.c --- a/loco.c Tue Apr 05 18:29:26 2005 +0000 +++ b/loco.c Thu Apr 07 22:02:28 2005 +0000 @@ -188,11 +188,11 @@ 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[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); - 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); break; case LOCO_CRGB: case LOCO_RGB: decoded = loco_decode_plane(l, p->data[0], avctx->width, avctx->height,