Plumb presentation time from server into AVFrame.pts field

This commit is contained in:
Cameron Gutman
2019-11-11 18:03:47 -08:00
parent 741113a607
commit de7b973239
3 changed files with 6 additions and 3 deletions

View File

@@ -258,7 +258,7 @@ void Pacer::renderFrame(AVFrame* frame)
{
// Count time spent in Pacer's queues
Uint32 beforeRender = SDL_GetTicks();
m_VideoStats->totalPacerTime += beforeRender - frame->pts;
m_VideoStats->totalPacerTime += beforeRender - frame->pkt_dts;
// Render it
m_VsyncRenderer->renderFrame(frame);