Commit 535c8413 authored by Zhao Zhili's avatar Zhao Zhili Committed by François Cartegnie

demux: adaptive: filter out invalid dts for PCR calculation

Signed-off-by: François Cartegnie's avatarFrancois Cartegnie <fcvlcdev@free.fr>
(cherry picked from commit 8caf5ab3)
parent 67972f97
...@@ -355,7 +355,11 @@ mtime_t CommandsQueue::Process( es_out_t *out, mtime_t barrier ) ...@@ -355,7 +355,11 @@ mtime_t CommandsQueue::Process( es_out_t *out, mtime_t barrier )
output.pop_front(); output.pop_front();
if( command->getType() == ES_OUT_PRIVATE_COMMAND_SEND ) 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 ); command->Execute( out );
delete command; delete command;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment