diff options
author | John Stebbins <[email protected]> | 2016-02-12 08:25:09 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-02-12 08:27:11 -0700 |
commit | f9ff520053eecc2c119ee5815a902ec955e7dbc7 (patch) | |
tree | 67d5ccad5093664dea36ad1e0572de083caaa201 | |
parent | 0da688d8959b1f99974da0d7a91ba18e49b19d03 (diff) |
sync: fix crash when sync init fails
-rw-r--r-- | libhb/sync.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libhb/sync.c b/libhb/sync.c index 282c18bbd..8a0fa7112 100644 --- a/libhb/sync.c +++ b/libhb/sync.c @@ -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 ); |