[vlc-commits] [Git][videolan/vlc][master] gaussianblur: don't read past the right edge
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Wed Oct 14 08:21:16 UTC 2026
Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
892daf92 by Martin Finkel at 2026-10-14T09:52:50+02:00
gaussianblur: don't read past the right edge
The horizontal pass and the normalization table bounded x by
(visible_pitch - col) * (x_factor + 1) + 1, reading up to two bytes past
the visible width (one for the chroma planes) and weighting them as
pixels, so the last columns depended on the picture padding. Use - 1, as
the vertical pass does.
- - - - -
1 changed file:
- modules/video_filter/gaussianblur.c
Changes:
=====================================
modules/video_filter/gaussianblur.c
=====================================
@@ -232,7 +232,7 @@ static void Filter( filter_t *p_filter, picture_t *p_pic, picture_t *p_outpic )
y++ )
{
for( int x = __MAX( -i_dim, -i_col );
- x <= __MIN( i_dim, i_visible_pitch - i_col + 1 );
+ x <= __MIN( i_dim, i_visible_pitch - i_col - 1 );
x++ )
{
t_value += pt_distribution[y+i_dim] *
@@ -265,7 +265,7 @@ static void Filter( filter_t *p_filter, picture_t *p_pic, picture_t *p_outpic )
type_t t_value = 0;
const int c = i_line*i_in_pitch+i_col;
for( int x = __MAX( -i_dim, -i_col*(x_factor+1) );
- x <= __MIN( i_dim, (i_visible_pitch - i_col)*(x_factor+1) + 1 );
+ x <= __MIN( i_dim, (i_visible_pitch - i_col)*(x_factor+1) - 1 );
x++ )
{
t_value += pt_distribution[x+i_dim] *
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/892daf9213d3c0ce0f460f2e51a8ff6e128cb81a
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/892daf9213d3c0ce0f460f2e51a8ff6e128cb81a
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list