[vlc-devel] [vlc-commits] codec: spudec: refactor spu fixes/validation

Francois Cartegnie fcvlcdev at free.fr
Mon Jan 6 14:03:14 CET 2020


Le 06/01/2020 à 08:08, Steve Lhomme a écrit :

>>   +    if( p_spu->i_stop <= p_spu->i_start && !p_spu->b_ephemer )
>> +    {
>> +        /* This subtitle will live for 5 seconds or until the next
>> subtitle */
>> +        p_spu->i_stop = p_spu->i_start + VLC_TICK_FROM_MS(500 * 11);
> 
> What is the 11 for ? If you want 5s you should use VLC_TICK_FROM_SEC(5).
> 

I just refactor, that's not my code

-- 
Francois Cartegnie
VideoLAN - VLC Developer


More information about the vlc-devel mailing list