]> granicus.if.org Git - handbrake/commitdiff
make count of video frames encoded logging accurate.
authorjstebbins <jstebbins.hb@gmail.com>
Sat, 24 Apr 2010 21:47:58 +0000 (21:47 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Sat, 24 Apr 2010 21:47:58 +0000 (21:47 +0000)
it was missing the last frame in the count.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3263 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/sync.c

index 1f6581edb2a2d9f4e9764de0e7003aa8717c2959..a36b37b5b7763b5991369ca5586e3b9a8ac4f0ee 100644 (file)
@@ -390,6 +390,9 @@ int syncVideoWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
         cur->start = sync->next_start;
         cur->stop = cur->start + 90000. / ((double)job->vrate / (double)job->vrate_base);
 
+        /* Make sure last frame is reflected in frame count */
+        pv->common->count_frames++;
+
         /* Push the frame to the renderer */
         hb_fifo_push( job->fifo_sync, cur );
         sync->cur = NULL;