[vlc-devel] [PATCH] demux: adaptive: filter out invalid dts for PCR calculation

Zhao Zhili quinkblack at foxmail.com
Mon Jan 8 14:03:14 CET 2018


Ping...


On 2018年01月02日 13:00, Zhao Zhili wrote:
> ---
>   modules/demux/adaptive/plumbing/CommandsQueue.cpp | 6 +++++-
>   1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/modules/demux/adaptive/plumbing/CommandsQueue.cpp b/modules/demux/adaptive/plumbing/CommandsQueue.cpp
> index 850c94b..a3e683a 100644
> --- a/modules/demux/adaptive/plumbing/CommandsQueue.cpp
> +++ b/modules/demux/adaptive/plumbing/CommandsQueue.cpp
> @@ -355,7 +355,11 @@ mtime_t CommandsQueue::Process( es_out_t *out, mtime_t barrier )
>           output.pop_front();
>   
>           if( command->getType() == ES_OUT_PRIVATE_COMMAND_SEND )
> -            lastdts = command->getTime();
> +        {
> +            mtime_t dts = command->getTime();
> +            if( dts != VLC_TS_INVALID )
> +                lastdts = dts;
> +        }
>   
>           command->Execute( out );
>           delete command;





More information about the vlc-devel mailing list