mirror of
https://github.com/videolan/vlc.git
synced 2025-01-26 01:25:47 +08:00
* copy: don't break the length for subtitle packet.
This commit is contained in:
parent
b289607fd1
commit
ef1c5bcfb2
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user