]> granicus.if.org Git - handbrake/commitdiff
libhb: fix job configuration when qsv removes all filters
authorjstebbins <jstebbins.hb@gmail.com>
Mon, 5 Jan 2015 20:58:26 +0000 (20:58 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Mon, 5 Jan 2015 20:58:26 +0000 (20:58 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6688 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/work.c

index 72d4d294a6aec3f6c4696b41c00edfef7105d437..39f0dd3ac8bcfbb22475db247187ea7c1f08e4f5 100644 (file)
@@ -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. */