+ if( p_sys->i_pos_x < 0 || p_sys->i_pos_y < 0 )
+ {
+ msg_Warn( p_filter,
+ "logo(%ix%i) doesn't fit into video(%ix%i)",
+ p_fmt->i_visible_width, p_fmt->i_visible_height,
+ i_dst_w,i_dst_h );
+ p_sys->i_pos_x = (p_sys->i_pos_x > 0) ? p_sys->i_pos_x : 0;
+ p_sys->i_pos_y = (p_sys->i_pos_y > 0) ? p_sys->i_pos_y : 0;
+ }
+