mirror of https://code.videolan.org/videolan/vlc
Handle special blocks in subsdec.
This commit is contained in:
parent
4ce86c99c1
commit
a141e9073c
|
@ -259,6 +259,11 @@ static subpicture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
|
|||
return NULL;
|
||||
|
||||
p_block = *pp_block;
|
||||
if( p_block->i_flags & (BLOCK_FLAG_DISCONTINUITY|BLOCK_FLAG_CORRUPTED) )
|
||||
{
|
||||
block_Release( p_block );
|
||||
return NULL;
|
||||
}
|
||||
if( p_block->i_rate != 0 )
|
||||
p_block->i_length = p_block->i_length * p_block->i_rate / INPUT_RATE_DEFAULT;
|
||||
|
||||
|
|
Loading…
Reference in New Issue