]> git.sesse.net Git - vlc/commitdiff
* Don't allow negative offsets when blending
authorDerk-Jan Hartman <hartman@videolan.org>
Tue, 16 Jan 2007 15:52:30 +0000 (15:52 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Tue, 16 Jan 2007 15:52:30 +0000 (15:52 +0000)
src/video_output/vout_subpictures.c

index 45959e62db9988eb9a27b49ac0990e96a30fc9c2..f9790c7f20e263dc20525961a1cdd77810ee8978 100644 (file)
@@ -804,6 +804,9 @@ void spu_RenderSubpictures( spu_t *p_spu, video_format_t *p_fmt,
                 }
             }
 
+            i_x_offset = __MIN( i_x_offset, 0 );
+            i_y_offset = __MIN( i_y_offset, 0 );
+
             p_spu->p_blend->pf_video_blend( p_spu->p_blend, p_pic_dst,
                 p_pic_src, &p_region->picture, i_x_offset, i_y_offset,
                 i_fade_alpha * p_subpic->i_alpha / 255 );