X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fvideo_filter%2Fwall.c;h=026ca8aef03a0850f1582e467e909bb58698b1a8;hb=6ee1e193fd896ab9a4729fde14f009d9ce629815;hp=84fe34a2a8e435e756fb9d746fc6e137f1a56fde;hpb=3305b049e7f587b23359a1c9047fb5763d19c1dc;p=vlc diff --git a/modules/video_filter/wall.c b/modules/video_filter/wall.c index 84fe34a2a8..026ca8aef0 100644 --- a/modules/video_filter/wall.c +++ b/modules/video_filter/wall.c @@ -294,16 +294,16 @@ static int Init( vout_thread_t *p_vout ) w1 &= ~1; h1 = w1 * VOUT_ASPECT_FACTOR / i_aspect&~1; h1 &= ~1; - + h2 = p_vout->output.i_height / p_vout->p_sys->i_row&~1; h2 &= ~1; w2 = h2 * i_aspect / VOUT_ASPECT_FACTOR&~1; w2 &= ~1; - + if ( h1 * p_vout->p_sys->i_row < p_vout->output.i_height ) { unsigned int i_tmp; - i_target_width = w2; + i_target_width = w2; i_target_height = h2; i_vstart = 0; i_vend = p_vout->output.i_height; @@ -335,7 +335,7 @@ static int Init( vout_thread_t *p_vout ) p_vout->p_sys->i_vout = 0; msg_Dbg( p_vout, "target window (%d,%d)-(%d,%d)", i_hstart,i_vstart,i_hend,i_vend ); - + i_top = 0; i_height = 0; @@ -355,7 +355,7 @@ static int Init( vout_thread_t *p_vout ) else if( ( i_col + 1 ) * i_target_width < i_hstart || ( i_col * i_target_width ) > i_hend ) { - i_width = 0; + i_width = 0; } else { @@ -370,7 +370,7 @@ static int Init( vout_thread_t *p_vout ) i_align |= VOUT_ALIGN_RIGHT; } } - + if( i_row * i_target_height >= i_vstart && ( i_row + 1 ) * i_target_height <= i_vend ) {