[vlc-devel] commit: MotionDetect: check for NULLITY at the right place. ( Jean-Baptiste Kempf )
git version control
git at videolan.org
Thu Oct 30 17:37:03 CET 2008
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Oct 30 18:33:40 2008 +0100| [55bdfd25ccd72dc758b3e331bbc6fc716d59e948] | committer: Jean-Baptiste Kempf
MotionDetect: check for NULLITY at the right place.
Fix CID 234
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=55bdfd25ccd72dc758b3e331bbc6fc716d59e948
---
modules/video_filter/motiondetect.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/video_filter/motiondetect.c b/modules/video_filter/motiondetect.c
index 5eea3e5..aaf8f31 100644
--- a/modules/video_filter/motiondetect.c
+++ b/modules/video_filter/motiondetect.c
@@ -157,9 +157,6 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_inpic )
picture_t *p_outpic;
- const uint8_t *p_inpix = p_inpic->p[Y_PLANE].p_pixels;
- const int i_src_pitch = p_inpic->p[Y_PLANE].i_pitch;
-
uint8_t *p_oldpix = p_sys->p_old->p[Y_PLANE].p_pixels;
const int i_old_pitch = p_sys->p_old->p[Y_PLANE].i_pitch;
uint32_t *p_buf = p_sys->p_buf;
@@ -170,6 +167,9 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_inpic )
if( !p_inpic )
return NULL;
+ const uint8_t *p_inpix = p_inpic->p[Y_PLANE].p_pixels;
+ const int i_src_pitch = p_inpic->p[Y_PLANE].i_pitch;
+
if( !p_sys->b_old )
{
picture_Copy( p_sys->p_old, p_inpic );
More information about the vlc-devel
mailing list