Commit de67c8c9 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* backport [17752]: allow empty subtitles. These are used to wipe ephemer...

* backport [17752]: allow empty subtitles. These are used to wipe ephemer substitles of the screen. Used by Timed Text
parent b12a0599
...@@ -316,9 +316,11 @@ static subpicture_t *ParseText( decoder_t *p_dec, block_t *p_block ) ...@@ -316,9 +316,11 @@ static subpicture_t *ParseText( decoder_t *p_dec, block_t *p_block )
} }
/* Check validity of packet data */ /* Check validity of packet data */
if( p_block->i_buffer <= 1 || p_block->p_buffer[0] == '\0' ) /* An "empty" line containing only \0 can be used to force
and ephemer picture from the screen */
if( p_block->i_buffer < 1 )
{ {
msg_Warn( p_dec, "empty subtitle" ); msg_Warn( p_dec, "no subtitle data" );
return NULL; return NULL;
} }
......
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