OSDN Git Service

When caching frame durations for the delay_queue, store the times of the frames comin...
authorjbrjake <jbrjake@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Wed, 8 Jul 2009 13:44:26 +0000 (13:44 +0000)
committerjbrjake <jbrjake@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Wed, 8 Jul 2009 13:44:26 +0000 (13:44 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@2671 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/render.c

index 5b9ccca..a4943b7 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 */