From 5ed346b8eba0333f83ade4cea37378e09f5d0eb2 Mon Sep 17 00:00:00 2001
From: Rodeo <tdskywalker@gmail.com>
Date: Sat, 27 Oct 2012 17:42:00 +0000
Subject: Fix initialization of hb_job_t.pfr_vrate(_base).

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5037 b64f7644-9d1e-0410-96f1-a4d463321fa5
---
 libhb/common.h | 2 ++
 libhb/vfr.c    | 2 ++
 libhb/work.c   | 4 ++++
 3 files changed, 8 insertions(+)

(limited to 'libhb')

diff --git a/libhb/common.h b/libhb/common.h
index 77898cef3..f7cc6dfef 100644
--- a/libhb/common.h
+++ b/libhb/common.h
@@ -877,6 +877,8 @@ typedef struct hb_filter_init_s
     int           crop[4];
     int           vrate_base;
     int           vrate;
+    int           pfr_vrate_base;
+    int           pfr_vrate;
     int           cfr;
 } hb_filter_init_t;
 
diff --git a/libhb/vfr.c b/libhb/vfr.c
index 8e50d5b89..b52d06a0c 100644
--- a/libhb/vfr.c
+++ b/libhb/vfr.c
@@ -355,6 +355,8 @@ static int hb_vfr_init( hb_filter_object_t * filter,
             init->vrate = pv->vrate;
             init->vrate_base = pv->vrate_base;
         }
+        init->pfr_vrate = pv->vrate;
+        init->pfr_vrate_base = pv->vrate_base;
     }
     else
     {
diff --git a/libhb/work.c b/libhb/work.c
index 858156f45..277ebf033 100644
--- a/libhb/work.c
+++ b/libhb/work.c
@@ -700,6 +700,8 @@ static void do_job( hb_job_t * job )
         memcpy(init.crop, title->crop, sizeof(int[4]));
         init.vrate_base = title->rate_base;
         init.vrate = title->rate;
+        init.pfr_vrate_base = job->pfr_vrate_base;
+        init.pfr_vrate = job->pfr_vrate;
         init.cfr = 0;
         for( i = 0; i < hb_list_count( job->list_filter ); )
         {
@@ -721,6 +723,8 @@ static void do_job( hb_job_t * job )
         memcpy(title->crop, init.crop, sizeof(int[4]));
         job->vrate_base = init.vrate_base;
         job->vrate = init.vrate;
+        job->pfr_vrate_base = init.pfr_vrate_base;
+        job->pfr_vrate = init.pfr_vrate;
         job->cfr = init.cfr;
     }
 
-- 
cgit v1.2.3