Handle special blocks in subsdec.

This commit is contained in:
Laurent Aimar 2008-09-18 20:13:47 +02:00
parent 4ce86c99c1
commit a141e9073c
1 changed files with 5 additions and 0 deletions

View File

@ -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;