]> git.sesse.net Git - vlc/commitdiff
Fixed mix up between pitches in magnify filter.
authorLaurent Aimar <fenrir@videolan.org>
Wed, 3 Mar 2010 21:34:57 +0000 (22:34 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Wed, 3 Mar 2010 21:36:02 +0000 (22:36 +0100)
modules/video_filter/magnify.c

index 84ab1d84c68b48b891d5c6ea03bea0f5e3a51deb..2ddbc8be0c36582d208608a42a31c0d19975898f 100644 (file)
@@ -185,7 +185,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
             const int o_yp = o_y * p_outpic->p[i_plane].i_lines / p_outpic->p[Y_PLANE].i_lines;
             const int o_xp = o_x * p_outpic->p[i_plane].i_pitch / p_outpic->p[Y_PLANE].i_pitch;
 
-            crop.p[i_plane].p_pixels += o_yp * p_outpic->p[i_plane].i_pitch + o_xp;
+            crop.p[i_plane].p_pixels += o_yp * p_pic->p[i_plane].i_pitch + o_xp;
         }
 
         /* */