* copy: don't break the length for subtitle packet.

This commit is contained in:
Laurent Aimar 2004-05-28 19:55:01 +00:00
parent b289607fd1
commit ef1c5bcfb2

View File

@ -267,7 +267,8 @@ static block_t *Packetize ( decoder_t *p_dec, block_t **pp_block )
return NULL;
}
if( p_ret != NULL && p_block->i_pts > p_ret->i_pts )
if( p_dec->fmt_in.i_cat != SPU_ES &&
p_ret != NULL && p_block->i_pts > p_ret->i_pts )
{
p_ret->i_length = p_block->i_pts - p_ret->i_pts;
}