Plumb presentation time from server into AVFrame.pts field
This commit is contained in:
parent
741113a607
commit
de7b973239
3 changed files with 6 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue