video_filters: remove dummy assignement.
authorRémi Duraffort <ivoire@videolan.org>
Mon, 15 Nov 2010 17:07:39 +0000 (18:07 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Mon, 15 Nov 2010 17:07:39 +0000 (18:07 +0100)
modules/video_filter/erase.c
modules/video_filter/osdmenu.c

index 111e92a..4bcb020 100644 (file)
@@ -251,7 +251,6 @@ static void FilterErase( filter_t *p_filter, picture_t *p_inpic,
         const int i_visible_pitch = p_inpic->p[i_plane].i_visible_pitch;
         const int i_visible_lines = p_inpic->p[i_plane].i_visible_lines;
 
-        uint8_t *p_outpix = p_outpic->p[i_plane].p_pixels;
         uint8_t *p_mask = p_sys->p_mask->A_PIXELS;
         int i_x = p_sys->i_x, i_y = p_sys->i_y;
 
@@ -280,7 +279,7 @@ static void FilterErase( filter_t *p_filter, picture_t *p_inpic,
         plane_CopyPixels( &p_outpic->p[i_plane], &p_inpic->p[i_plane] );
 
         /* Horizontal linear interpolation of masked areas */
-        p_outpix = p_outpic->p[i_plane].p_pixels + i_y*i_pitch + i_x;
+        uint8_t *p_outpix = p_outpic->p[i_plane].p_pixels + i_y*i_pitch + i_x;
         for( y = 0; y < i_height;
              y++, p_mask += i_mask_pitch, p_outpix += i_pitch )
         {
index 7e2efd2..0400813 100644 (file)
@@ -462,7 +462,6 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t i_date )
         p_sys->i_end_date = p_spu->i_stop;
     }
 
-    p_sys->i_last_date = i_date;
     p_spu->i_start = p_sys->i_last_date = i_date;
 
     /* Send an empty subpicture to clear the display