From c5764aa0319f44b7604f916158329c0a20d30e29 Mon Sep 17 00:00:00 2001 From: jbrjake <jb.rubin@gmail.com> Date: Wed, 8 Jul 2009 13:44:26 +0000 Subject: 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 --- libhb/render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libhb') 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 */ -- cgit v1.2.3