handbrake: rebuild for x265-4.0.

This commit is contained in:
1is7ac3 2025-06-01 16:20:27 -04:00 committed by classabbyamp
parent fd442ef2ed
commit 00fd370f3c
No known key found for this signature in database
GPG key ID: 6BE0755918A4C7F5
2 changed files with 33 additions and 1 deletions

View file

@ -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);

View file

@ -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)"