git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/opencl@5356
b64f7644-9d1e-0410-96f1-
a4d463321fa5
else
frame.pkt_pts = pv->dxva2->input_pts[0]<pv->dxva2->input_pts[1] ? pv->dxva2->input_pts[0] : pv->dxva2->input_pts[1];
}
- pts = pv->pts_next;
}
-#else
+#endif
// If there was no pts for this frame, assume constant frame rate
// video & estimate the next frame time from the last & duration.
- if (frame.pkt_pts == AV_NOPTS_VALUE)
+ if (frame.pkt_pts == AV_NOPTS_VALUE || hb_gui_use_hwd_flag == 1)
{
pts = pv->pts_next;
}
{
pts = frame.pkt_pts;
}
-#endif
+
pv->pts_next = pts + frame_dur;
if ( frame.top_field_first )