Discussion:
demux/adaptive: fix incorrect PCR
Add Reply
Zhao Zhili
2017-07-13 13:20:47 UTC
Reply
Permalink
Raw Message
vlc | branch: master | Zhao Zhili <***@gmail.com> | Fri Jul 7 11:52:44 2017 +0800| [b64cd4096e67da947dd9814396ba62c7083ba871] | committer: Francois Cartegnie

demux/adaptive: fix incorrect PCR
http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b64cd4096e67da947dd9814396ba62c7083ba871
---

modules/demux/adaptive/plumbing/FakeESOut.cpp | 1 +
1 file changed, 1 insertion(+)

diff --git a/modules/demux/adaptive/plumbing/FakeESOut.cpp b/modules/demux/adaptive/plumbing/FakeESOut.cpp
index 3d85fa3387..87b70bb34a 100644
--- a/modules/demux/adaptive/plumbing/FakeESOut.cpp
+++ b/modules/demux/adaptive/plumbing/FakeESOut.cpp
@@ -377,6 +377,7 @@ int FakeESOut::esOutControl_Callback(es_out_t *fakees, int i_query, va_list args
else
i_group = 0;
int64_t pcr = va_arg( args, int64_t );
+ me->checkTimestampsStart( pcr );
pcr += me->getTimestampOffset();
AbstractCommand *command = me->commandsqueue->factory()->createEsOutControlPCRCommand( i_group, pcr );
if( likely(command) )

Loading...