changeset 2598:6eaebf1fbd74 libavcodec

Fix colors for YV12 case (u/v planes are swapped) Fixes locoRGBA.avi (the file is really YV12, even if it's called RGBA)
author rtognimp
date Thu, 07 Apr 2005 22:02:28 +0000
parents b5b09255f7c3
children 3e36a706f5b7
files loco.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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,