diff options
-rw-r--r-- | libhb/common.c | 2 | ||||
-rw-r--r-- | libhb/encx265.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libhb/common.c b/libhb/common.c index 3cb804ce7..8ad4f9e6a 100644 --- a/libhb/common.c +++ b/libhb/common.c @@ -262,7 +262,7 @@ static int hb_video_encoder_is_enabled(int encoder) case HB_VCODEC_X265_16BIT: { const x265_api *api; - api = x265_api_get(hb_video_encoder_get_depth(encoder)); + api = x265_api_query(hb_video_encoder_get_depth(encoder), X265_BUILD, NULL); return (api != NULL); }; #endif diff --git a/libhb/encx265.c b/libhb/encx265.c index f330bb652..d7c1c64b1 100644 --- a/libhb/encx265.c +++ b/libhb/encx265.c @@ -108,11 +108,11 @@ int encx265Init(hb_work_object_t *w, hb_job_t *job) depth = hb_video_encoder_get_depth(job->vcodec); profile_names = hb_video_encoder_get_profiles(job->vcodec); - pv->api = x265_api_get(depth); + pv->api = x265_api_query(depth, X265_BUILD, NULL); if (pv->api == NULL) { - hb_error("encx265: x265_api_get failed, bit depth %d.", depth); + hb_error("encx265: x265_api_query failed, bit depth %d.", depth); goto fail; } |