Files
jellyfin-ffmpeg/debian/patches/0027-add-fixes-for-hevc-vaapi-encoding-on-tgl.patch
T
2025-04-17 22:34:15 +08:00

17 lines
812 B
Diff

Index: FFmpeg/libavcodec/hw_base_encode_h265.c
===================================================================
--- FFmpeg.orig/libavcodec/hw_base_encode_h265.c
+++ FFmpeg/libavcodec/hw_base_encode_h265.c
@@ -216,8 +216,9 @@ int ff_hw_base_encode_init_params_h265(F
sps->log2_min_luma_transform_block_size_minus2 = 0;
sps->log2_diff_max_min_luma_transform_block_size = 3;
// Full transform hierarchy allowed (2-5).
- sps->max_transform_hierarchy_depth_inter = 3;
- sps->max_transform_hierarchy_depth_intra = 3;
+ // Default to 2 based on Programmer's Reference Manuals of Intel graphics.
+ sps->max_transform_hierarchy_depth_inter = 2;
+ sps->max_transform_hierarchy_depth_intra = 2;
// AMP works.
sps->amp_enabled_flag = 1;
// SAO and temporal MVP do not work.