From e499cd2abfbe5ce3d29590bf50ba74f0b7a031f8 Mon Sep 17 00:00:00 2001 From: nyanmisaka Date: Sat, 5 Mar 2022 22:54:22 +0800 Subject: [PATCH] Add fixes for corrupted hevc-vaapi on TGL --- ...d-fixes-for-corrupted-hevc-vaapi-on-tgl.patch | 16 ++++++++++++++++ debian/patches/series | 1 + 2 files changed, 17 insertions(+) create mode 100644 debian/patches/0033-add-fixes-for-corrupted-hevc-vaapi-on-tgl.patch diff --git a/debian/patches/0033-add-fixes-for-corrupted-hevc-vaapi-on-tgl.patch b/debian/patches/0033-add-fixes-for-corrupted-hevc-vaapi-on-tgl.patch new file mode 100644 index 00000000000..65026f81b24 --- /dev/null +++ b/debian/patches/0033-add-fixes-for-corrupted-hevc-vaapi-on-tgl.patch @@ -0,0 +1,16 @@ +Index: jellyfin-ffmpeg/libavcodec/vaapi_encode_h265.c +=================================================================== +--- jellyfin-ffmpeg.orig/libavcodec/vaapi_encode_h265.c ++++ jellyfin-ffmpeg/libavcodec/vaapi_encode_h265.c +@@ -428,8 +428,9 @@ static int vaapi_encode_h265_init_sequen + 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. diff --git a/debian/patches/series b/debian/patches/series index 3fc8da2647e..b0e6eb13af6 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -30,3 +30,4 @@ 0030-add-fixes-for-a-vaapi-qsv-mapping-error.patch 0031-add-a-vaapi-overlay-filter.patch 0032-add-async-support-for-qsv-vpp.patch +0033-add-fixes-for-corrupted-hevc-vaapi-on-tgl.patch