diff options
author | John Stebbins <[email protected]> | 2016-03-30 14:44:52 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-03-30 14:46:17 -0700 |
commit | 804ca4c61b6115730d0a55c92629e2fd54032eed (patch) | |
tree | 9bb1648f0de3133d9d72c0bf044c142730115502 /libhb | |
parent | 17afb1a15761cee42411f7f9140a10920aa25bb4 (diff) |
x265: use more permissive x265_api_query instead of x265_api_get
This allows use of versions of the library that are compatible, but do
not necessarily have the same build number.
Diffstat (limited to 'libhb')
-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; } |