[vlc-commits] sharpen: fix swapped var

Lyndon Brown git at videolan.org
Wed Mar 20 15:34:42 CET 2019


vlc | branch: master | Lyndon Brown <jnqnfe at gmail.com> | Mon Mar 18 02:35:33 2019 +0000| [dab0e07a817bad06c91cd759cdacf3bfd2e051b9] | committer: Thomas Guillem

sharpen: fix swapped var

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

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

diff --git a/modules/video_filter/sharpen.c b/modules/video_filter/sharpen.c
index 55c7c562a8..76972de44a 100644
--- a/modules/video_filter/sharpen.c
+++ b/modules/video_filter/sharpen.c
@@ -166,8 +166,8 @@ static void Destroy( vlc_object_t *p_this )
         data_t *restrict p_src = (data_t *)p_pic->p[Y_PLANE].p_pixels;  \
         data_t *restrict p_out = (data_t *)p_outpic->p[Y_PLANE].p_pixels; \
         const unsigned data_sz = sizeof(data_t);                        \
-        const int i_src_line_len = p_outpic->p[Y_PLANE].i_pitch / data_sz; \
-        const int i_out_line_len = p_pic->p[Y_PLANE].i_pitch / data_sz; \
+        const int i_src_line_len = p_pic->p[Y_PLANE].i_pitch / data_sz; \
+        const int i_out_line_len = p_outpic->p[Y_PLANE].i_pitch / data_sz; \
         const int sigma = atomic_load(&p_sys->sigma);         \
                                                                         \
         memcpy(p_out, p_src, i_visible_pitch);                          \



More information about the vlc-commits mailing list