Fix lagarith YUY2 output.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Wed, 9 May 2012 09:58:08 +0000 (11:58 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Wed, 9 May 2012 09:58:08 +0000 (11:58 +0200)
libavcodec/lagarith.c

index 27793ac..96baf76 100644 (file)
@@ -627,11 +627,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: