]> git.sesse.net Git - vlc/commitdiff
Protect against broken subpicture size.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 28 Sep 2008 13:49:25 +0000 (15:49 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 30 Sep 2008 20:22:33 +0000 (22:22 +0200)
src/video_output/vout_subpictures.c

index 3161e488d5ce8f714e286a15f4b37a97fb854114..6beeee8a538c80db1d6f8cea9d06dbda40ebbdb8 100644 (file)
@@ -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;