changeset 30117:53e5874c33c3

One more fix for -vf scale with alpha.
author reimar
date Fri, 01 Jan 2010 01:25:35 +0000
parents f2d9ce0a6b28
children cdec8d3a2225
files libmpcodecs/vf_scale.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_scale.c	Fri Jan 01 01:06:34 2010 +0000
+++ b/libmpcodecs/vf_scale.c	Fri Jan 01 01:25:35 2010 +0000
@@ -349,7 +349,7 @@
         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];
         }