[vlc-commits] sharpen: remove antilogy

Rémi Denis-Courmont git at videolan.org
Fri Aug 21 19:14:25 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Aug 21 19:47:55 2015 +0300| [dfd9fc1c9ceb2594b0922037deb0eba85d25099d] | committer: Rémi Denis-Courmont

sharpen: remove antilogy

Input picture to a filter is never NULL. And even if it were NULL, the
pointer is dereferenced earlier...

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

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

diff --git a/modules/video_filter/sharpen.c b/modules/video_filter/sharpen.c
index 9721eb6..fb0545a 100644
--- a/modules/video_filter/sharpen.c
+++ b/modules/video_filter/sharpen.c
@@ -181,8 +181,6 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
     const unsigned i_visible_pitch = p_pic->p[Y_PLANE].i_visible_pitch;
     const int sigma = var_GetFloat( p_filter, FILTER_PREFIX "sigma" ) * (1 << 20);
 
-    if( !p_pic ) return NULL;
-
     p_outpic = filter_NewPicture( p_filter );
     if( !p_outpic )
     {



More information about the vlc-commits mailing list