summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2015-01-05 20:58:26 +0000
committerjstebbins <[email protected]>2015-01-05 20:58:26 +0000
commitd60c2bd25a9776ba55703f79c2d8c03d965531be (patch)
tree4772538470dde6e79f35f1991804122a260441cf
parentedc4bf05528c5ebf2dca3bdeb54b5fb91fb544c2 (diff)
libhb: fix job configuration when qsv removes all filters
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6688 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--libhb/work.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libhb/work.c b/libhb/work.c
index 72d4d294a..39f0dd3ac 100644
--- a/libhb/work.c
+++ b/libhb/work.c
@@ -901,6 +901,15 @@ static void do_job(hb_job_t *job)
job->vrate = init.vrate;
job->cfr = init.cfr;
}
+ else
+ {
+ job->width = title->geometry.width;
+ job->height = title->geometry.height;
+ job->par = title->geometry.par;
+ memset(job->crop, 0, sizeof(int[4]));
+ job->vrate = title->vrate;
+ job->cfr = 0;
+ }
/* While x264 is smart enough to reduce fractions on its own, libavcodec
* needs some help with the math, so lose superfluous factors. */