From 00fd370f3c8656a7b58323b1f467f84465b2975c Mon Sep 17 00:00:00 2001 From: 1is7ac3 Date: Sun, 1 Jun 2025 16:20:27 -0400 Subject: [PATCH] handbrake: rebuild for x265-4.0. --- srcpkgs/handbrake/patches/x265-pic_out.patch | 32 ++++++++++++++++++++ srcpkgs/handbrake/template | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/handbrake/patches/x265-pic_out.patch diff --git a/srcpkgs/handbrake/patches/x265-pic_out.patch b/srcpkgs/handbrake/patches/x265-pic_out.patch new file mode 100644 index 00000000000..115452d00eb --- /dev/null +++ b/srcpkgs/handbrake/patches/x265-pic_out.patch @@ -0,0 +1,32 @@ +*** a/libhb/encx265.c 2024-06-21 01:12:14.000000000 -0400 +--- b/libhb/encx265.c 2025-05-31 21:50:54.619402956 -0400 +*************** static hb_buffer_t* x265_encode(hb_work_ +*** 778,781 **** + save_frame_info(pv, in); +! +! ret = pv->api->encoder_encode(pv->x265, &nal, &nnal, &pic_in, &pic_out); + +--- 778,781 ---- + save_frame_info(pv, in); +! x265_picture *pic_out_ptr = &pic_out; +! ret = pv->api->encoder_encode(pv->x265, &nal, &nnal, &pic_in, &pic_out_ptr); + +*************** int encx265Work(hb_work_object_t *w, hb_ +*** 807,814 **** + hb_buffer_list_clear(&list); +! + // flush delayed frames + while (pv->api->encoder_encode(pv->x265, &nal, +! &nnal, NULL, &pic_out) > 0) + { +! hb_buffer_t *buf = nal_encode(w, &pic_out, nal, nnal); + hb_buffer_list_append(&list, buf); +--- 807,814 ---- + hb_buffer_list_clear(&list); +! x265_picture *pic_out_ptr = &pic_out; + // flush delayed frames + while (pv->api->encoder_encode(pv->x265, &nal, +! &nnal, NULL, &pic_out_ptr) > 0) + { +! hb_buffer_t *buf = nal_encode(w, pic_out_ptr, nal, nnal); + hb_buffer_list_append(&list, buf); diff --git a/srcpkgs/handbrake/template b/srcpkgs/handbrake/template index d32651a0abd..22fb9b6f4eb 100644 --- a/srcpkgs/handbrake/template +++ b/srcpkgs/handbrake/template @@ -1,7 +1,7 @@ # Template file for 'handbrake' pkgname=handbrake version=1.8.1 -revision=1 +revision=2 build_style=gnu-configure configure_args="--force --disable-df-fetch --harden $(vopt_enable fdk_aac fdk-aac) $(vopt_enable nvenc) $(vopt_enable qsv)"