]> git.sesse.net Git - vlc/blobdiff - modules/video_filter/motionblur.c
* enhanced BeOS preferences window (post-processing, brightness,
[vlc] / modules / video_filter / motionblur.c
index 51c25f670554cc08d234909a7095bb1cd84836b5..c4ede3b2b0b78f9f3989e93abd3e62669e674844 100644 (file)
@@ -2,7 +2,7 @@
  * motion_blur.c : motion blur filter for vlc
  *****************************************************************************
  * Copyright (C) 2000, 2001 VideoLAN
- * $Id: motionblur.c,v 1.1 2002/08/26 22:35:58 sigmunau Exp $
+ * $Id: motionblur.c,v 1.3 2002/11/23 02:40:30 sam Exp $
  *
  * Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
  *
@@ -24,7 +24,6 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <errno.h>
 #include <stdlib.h>                                      /* malloc(), free() */
 #include <string.h>
 
@@ -291,10 +290,13 @@ static void RenderBlur( vout_thread_t *p_vout, picture_t *p_oldpic,
         p_old = p_oldpic->p[i_plane].p_pixels;
         p_out_end = p_out + p_outpic->p[i_plane].i_pitch *
             p_outpic->p[i_plane].i_lines;
-        while ( p_out < p_out_end +4 )
+        while ( p_out < p_out_end )
         {
-            *p_out++ = (((*p_old++) * i_oldfactor) + ((*p_new++) * i_newfactor))>>7;
+            *p_out++ = (((*p_old++) * i_oldfactor) +
+                        ((*p_new++) * i_newfactor)) >> 7;
+            
 //            *p_out++ = (*p_old++ >> 1) + (*p_new++ >> 1);
+                
         }
     }
 }