From: jbrjake Date: Wed, 8 Jul 2009 13:44:26 +0000 (+0000) Subject: When caching frame durations for the delay_queue, store the times of the frames comin... X-Git-Tag: 0.9.4~291 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c5764aa0319f44b7604f916158329c0a20d30e29;p=handbrake When caching frame durations for the delay_queue, store the times of the frames coming out of the filters, not the frames entering the render pipeline from sync. This way times don't get assigned to incorrect frames when filters delay output. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2671 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/libhb/render.c b/libhb/render.c index 5b9ccca88..a4943b776 100644 --- a/libhb/render.c +++ b/libhb/render.c @@ -494,7 +494,7 @@ int renderWork( hb_work_object_t * w, hb_buffer_t ** buf_in, /* In order to make sure we have continuous time stamps, store the current frame's duration as starting when the last one stopped. */ pv->last_start[0] = pv->last_stop[1]; - pv->last_stop[0] = pv->last_start[0] + (in->stop - in->start); + pv->last_stop[0] = pv->last_start[0] + (buf_tmp_in->stop - buf_tmp_in->start); } /* Apply subtitles */