vlc | branch: master | Steve Lhomme <[email protected]> | Mon Jul 23 16:50:01 
2018 +0200| [74ee5368333ef167bd4316e6d122b6b9b6d23a11] | committer: Steve Lhomme

psychedelic: fix overshooting of the destination widget

When increasing we go from 0 to pitch-1 but when decreasing we were going from
pitch to 1.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=74ee5368333ef167bd4316e6d122b6b9b6d23a11
---

 modules/video_filter/psychedelic.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_filter/psychedelic.c 
b/modules/video_filter/psychedelic.c
index eed51477f0..5d2e79d5a0 100644
--- a/modules/video_filter/psychedelic.c
+++ b/modules/video_filter/psychedelic.c
@@ -202,11 +202,11 @@ static picture_t *Filter( filter_t *p_filter, picture_t 
*p_pic )
             if( p_sys->yinc == 1 ) \
                 ny= y; \
             else \
-                ny = p_converted->p[plane].i_visible_lines-y; \
+                ny = p_converted->p[plane].i_visible_lines-y -1; \
             if( p_sys->xinc == 1 ) \
                 nx = x; \
             else \
-                nx = p_converted->p[plane].i_visible_pitch-x; \
+                nx = p_converted->p[plane].i_visible_pitch-x -1; \
             
p_outpic->p[plane].p_pixels[(p_sys->x*b+nx)+(ny+p_sys->y*b)*p_outpic->p[plane].i_pitch
 ] = p_converted->p[plane].p_pixels[y*p_converted->p[plane].i_pitch+x]; \
         } }
         copyimage( Y_PLANE, 2 );

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to