[vlc-commits] video_filter: sharpen: fix artifact in middle of 8bpp videos
Tristan Matthews
git at videolan.org
Sat Nov 18 21:40:46 CET 2017
vlc | branch: master | Tristan Matthews <tmatth at videolan.org> | Sat Nov 18 15:30:58 2017 -0500| [a6b095982367a2d4cfb72686048633bf743593ff] | committer: Tristan Matthews
video_filter: sharpen: fix artifact in middle of 8bpp videos
Fixes #19098, regression from commit 7dd8a23dc2b6a3ee15533e07c8c32771b4d230a2
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a6b095982367a2d4cfb72686048633bf743593ff
---
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 f3c62cb913..e01fec0664 100644
--- a/modules/video_filter/sharpen.c
+++ b/modules/video_filter/sharpen.c
@@ -196,8 +196,8 @@ static void Destroy( vlc_object_t *p_this )
p_out[i * i_out_line_len + j] = \
VLC_CLIP( p_src[line_idx_2 + j] + pix, 0, maxval); \
} \
- p_out[i * i_out_line_len + i_visible_pitch / 2 - 1] = \
- p_src[i * i_src_line_len + i_visible_pitch / 2 - 1]; \
+ p_out[i * i_out_line_len + i_visible_pitch / data_sz - 1] = \
+ p_src[i * i_src_line_len + i_visible_pitch / data_sz - 1]; \
} \
memcpy(&p_out[(i_visible_lines - 1) * i_out_line_len], \
&p_src[(i_visible_lines - 1) * i_src_line_len], \
More information about the vlc-commits
mailing list