summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorjbrjake <[email protected]>2009-07-08 13:44:26 +0000
committerjbrjake <[email protected]>2009-07-08 13:44:26 +0000
commitc5764aa0319f44b7604f916158329c0a20d30e29 (patch)
tree53cef5127c2555d51a69ab5f6796801349cc7bfa /libhb
parent80de11f01f8878f6d4651ed994a264a8bcebdb01 (diff)
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
Diffstat (limited to 'libhb')
-rw-r--r--libhb/render.c2
1 files changed, 1 insertions, 1 deletions
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 */