freetype.c: don't render empty subtitles.

Some files uses an empty (only holding a space) subtitle to mark the end of
the previous subtitle. These caused a little gray box to appear with
--freetype-effect 3 before this change
parent 9565131c
......@@ -531,6 +531,9 @@ static int RenderYUVA( filter_t *p_filter, subpicture_region_t *p_region,
uint8_t i_y, i_u, i_v; /* YUV values, derived from incoming RGB */
subpicture_region_t *p_region_tmp;
if( i_width == 0 || i_height == 0 )
/* Create a new subpicture region */
memset( &fmt, 0, sizeof(video_format_t) );
fmt.i_chroma = VLC_FOURCC('Y','U','V','A');
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment