[vlc-devel] [PATCH] mux: ts: set p_sys->first_dts to lowest dts recieved

Francois Cartegnie fcvlcdev at free.fr
Wed Jun 11 10:05:58 CEST 2014


Le 11/06/2014 05:32, Ray Tiley a écrit :
> This fixes an issue where all packets will be ignored as having too
> strange dts. This is because when a stream is frist starting a high
> dts value may come in and cause the all following packets to be
> dropped.


Dubious about this one, as a reference cannot be set without checking
all streams.

>
> -        if (p_sys->first_dts == 0)
> +        if (p_sys->first_dts == 0 || p_data->i_dts < p_sys->first_dts )
>              p_sys->first_dts = p_data->i_dts;
>
>          p_data->i_dts -= p_sys->first_dts;
>

1st stream sends stamped dts 5 to 6s. firstdts set to 5, packets 0..1s.
2nd stream then sends dts 4 to 5. firstdts set to 4.
next 1st streams packets will now have a dts gap of 1s

Francois



More information about the vlc-devel mailing list