OSDN Git Service

make count of video frames encoded logging accurate.
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 24 Apr 2010 21:47:58 +0000 (21:47 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 24 Apr 2010 21:47:58 +0000 (21:47 +0000)
it was missing the last frame in the count.

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

libhb/sync.c

index 1f6581e..a36b37b 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;