Commit be89cdf1 authored by Tristan Matthews's avatar Tristan Matthews

video_filter: motionblur: use C99 loop declaration

parent 3181fcc5
...@@ -174,11 +174,10 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic ) ...@@ -174,11 +174,10 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
static void RenderBlur( filter_sys_t *p_sys, picture_t *p_newpic, static void RenderBlur( filter_sys_t *p_sys, picture_t *p_newpic,
picture_t *p_outpic ) picture_t *p_outpic )
{ {
int i_plane;
const int i_oldfactor = atomic_load( &p_sys->i_factor ); const int i_oldfactor = atomic_load( &p_sys->i_factor );
int i_newfactor = 128 - i_oldfactor; int i_newfactor = 128 - i_oldfactor;
for( i_plane = 0; i_plane < p_outpic->i_planes; i_plane++ ) for( int i_plane = 0; i_plane < p_outpic->i_planes; i_plane++ )
{ {
uint8_t *p_old, *p_new, *p_out, *p_out_end, *p_out_line_end; uint8_t *p_old, *p_new, *p_out, *p_out_end, *p_out_line_end;
const int i_visible_pitch = p_outpic->p[i_plane].i_visible_pitch; const int i_visible_pitch = p_outpic->p[i_plane].i_visible_pitch;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment