Commit 237f4205 authored by Laurent Aimar's avatar Laurent Aimar Committed by Jean-Baptiste Kempf

Handle special blocks in subsdec.

(cherry picked from commit a141e907)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 4224b0d9
......@@ -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;
......
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