]> granicus.if.org Git - handbrake/commitdiff
sync: fix crash when sync init fails
authorJohn Stebbins <jstebbins.hb@gmail.com>
Fri, 12 Feb 2016 15:25:09 +0000 (08:25 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Fri, 12 Feb 2016 15:27:11 +0000 (08:27 -0700)
libhb/sync.c

index 282c18bbd428dc21d4b9c86ae6dcf4abbbcefbe5..8a0fa711242f5d0fb4b25364eebb3d0f699c2ddc 100644 (file)
@@ -1414,12 +1414,13 @@ fail:
 static void syncVideoClose( hb_work_object_t * w )
 {
     hb_work_private_t * pv   = w->private_data;
-    hb_job_t          * job  = pv->common->job;
+    hb_job_t          * job;
 
     if (pv == NULL)
     {
         return;
     }
+    job = pv->common->job;
 
     hb_log("sync: got %d frames, %d expected",
            pv->stream->frame_count, pv->common->est_frame_count );