]> git.sesse.net Git - vlc/commitdiff
No functionnal changes (freetype).
authorLaurent Aimar <fenrir@videolan.org>
Sat, 25 Jun 2011 12:06:33 +0000 (14:06 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 25 Jun 2011 12:06:33 +0000 (14:06 +0200)
modules/misc/text_renderer/freetype.c

index 5415cf6ead5b16d722cdbc4ee269796e17f2564c..6be158a3ccb1f197cdd5ccd3e4918428a90ad787 100644 (file)
@@ -836,9 +836,6 @@ static int RenderYUVA( filter_t *p_filter, subpicture_region_t *p_region,
     video_format_t fmt;
     int i, y, i_pitch, i_alpha;
 
-    if( i_width == 0 || i_height == 0 )
-        return VLC_SUCCESS;
-
     /* Create a new subpicture region */
     memset( &fmt, 0, sizeof(video_format_t) );
     fmt.i_chroma = VLC_CODEC_YUVA;
@@ -2233,7 +2230,7 @@ static int RenderCommon( filter_t *p_filter, subpicture_region_t *p_region_out,
 
     /* Don't attempt to render text that couldn't be layed out
      * properly. */
-    if( !rv && i_text_length > 0 )
+    if( !rv && i_text_length > 0 && result.x > 0 && result.y > 0)
     {
         if( var_InheritBool( p_filter, "freetype-yuvp" ) )
             RenderYUVP( p_filter, p_region_out, p_lines,