Commit 8599c626 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Allow "empty" subtitle packets. These are used to "wipe" ephemer subtitles of the screen.

  Used by mp4 and 3gpp Timed Text 
parent f02d5f70
......@@ -316,9 +316,11 @@ static subpicture_t *ParseText( decoder_t *p_dec, block_t *p_block )
}
/* 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;
}
......
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