lagarith: fix color plane inversion for YUY2 output.
authorRonald S. Bultje <rsbultje@gmail.com>
Fri, 3 Aug 2012 03:46:08 +0000 (20:46 -0700)
committerRonald S. Bultje <rsbultje@gmail.com>
Fri, 3 Aug 2012 18:09:17 +0000 (11:09 -0700)
libavcodec/lagarith.c

index e72674c4816185c1ae4a083c2af25ab3c5964b0f..124ecee161eaf60f24740344bde58392178cd46e 100644 (file)
@@ -618,11 +618,11 @@ static int lag_decode_frame(AVCodecContext *avctx,
         lag_decode_arith_plane(l, p->data[0], avctx->width, avctx->height,
                                p->linesize[0], buf + offset_ry,
                                buf_size - offset_ry);
-        lag_decode_arith_plane(l, p->data[2], avctx->width / 2,
-                               avctx->height, p->linesize[2],
-                               buf + offset_gu, buf_size - offset_gu);
         lag_decode_arith_plane(l, p->data[1], avctx->width / 2,
                                avctx->height, p->linesize[1],
+                               buf + offset_gu, buf_size - offset_gu);
+        lag_decode_arith_plane(l, p->data[2], avctx->width / 2,
+                               avctx->height, p->linesize[2],
                                buf + offset_bv, buf_size - offset_bv);
         break;
     case FRAME_ARITH_YV12: