git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/0.9.x@4516
b64f7644-9d1e-0410-96f1-
a4d463321fa5
buf = tmp;
continue;
}
+ else
+ {
+ // Some streams have no PCRs. In these cases, we
+ // will only get an "PCR" update if a large change
+ // in DTS or PTS is detected. So we need to update
+ // our scr_delta with each valid timestamp so that
+ // fdelta does not continually grow.
+ state->scr_delta = buf->start - state->last_scr;
+ }
if ( state->last_pts >= 0 )
{
fdelta = buf->start - state->last_pts;