[MPlayer-cvslog] r30159 - trunk/libmpcodecs/vf_scale.c

reimar subversion at mplayerhq.hu
Fri Jan 1 02:25:35 CET 2010


Author: reimar
Date: Fri Jan  1 02:25:35 2010
New Revision: 30159

Log:
One more fix for -vf scale with alpha.

Modified:
   trunk/libmpcodecs/vf_scale.c

Modified: trunk/libmpcodecs/vf_scale.c
==============================================================================
--- trunk/libmpcodecs/vf_scale.c	Fri Jan  1 02:06:34 2010	(r30158)
+++ trunk/libmpcodecs/vf_scale.c	Fri Jan  1 02:25:35 2010	(r30159)
@@ -349,7 +349,7 @@ static void scale(struct SwsContext *sws
         int dst_stride2[MP_MAX_PLANES]={2*dst_stride[0], 2*dst_stride[1], 2*dst_stride[2], 2*dst_stride[3]};
 
         sws_scale_ordered(sws1, src2, src_stride2, y>>1, h>>1, dst2, dst_stride2);
-        for(i=0; i<3; i++){
+        for(i=0; i<MP_MAX_PLANES; i++){
             src2[i] += src_stride[i];
             dst2[i] += dst_stride[i];
         }


More information about the MPlayer-cvslog mailing list