summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorRodeo <[email protected]>2012-10-27 17:42:00 +0000
committerRodeo <[email protected]>2012-10-27 17:42:00 +0000
commit5ed346b8eba0333f83ade4cea37378e09f5d0eb2 (patch)
tree7fd4a8d16b3f6efd0fbd449695fe5bf000b5d6e4 /libhb
parent45c9f86e13ccfec6d697fefe18b99c6ad93dae83 (diff)
Fix initialization of hb_job_t.pfr_vrate(_base).
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5037 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r--libhb/common.h2
-rw-r--r--libhb/vfr.c2
-rw-r--r--libhb/work.c4
3 files changed, 8 insertions, 0 deletions
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;
}