]> granicus.if.org Git - handbrake/commitdiff
When caching frame durations for the delay_queue, store the times of the frames comin...
authorjbrjake <jb.rubin@gmail.com>
Wed, 8 Jul 2009 13:44:26 +0000 (13:44 +0000)
committerjbrjake <jb.rubin@gmail.com>
Wed, 8 Jul 2009 13:44:26 +0000 (13:44 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2671 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/render.c

index 5b9ccca88a5232986cd7677daaf070c1fc9ecdcb..a4943b77649ca20a60be192e30447fc3ac1d596c 100644 (file)
@@ -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 */