[vlc-devel] commit: Protect against broken subpicture size. (Laurent Aimar )

git version control git at videolan.org
Tue Sep 30 22:30:58 CEST 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Sep 28 15:49:25 2008 +0200| [24ee271422cd53373d0f95f4050b860d1de17c21] | committer: Laurent Aimar 

Protect against broken subpicture size.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=24ee271422cd53373d0f95f4050b860d1de17c21
---

 src/video_output/vout_subpictures.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index 3161e48..6beeee8 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -1472,7 +1472,7 @@ static void SpuRenderRegion( spu_t *p_spu,
         }
 
         /* Scale if needed into cache */
-        if( !p_region->p_private )
+        if( !p_region->p_private && i_dst_width > 0 && i_dst_height > 0 )
         {
             filter_t *p_scale = p_sys->p_scale;
 




More information about the vlc-devel mailing list