Skip to content

Commit

Permalink
Add fixes for corrupted hevc-vaapi on TGL
Browse files Browse the repository at this point in the history
  • Loading branch information
nyanmisaka committed Mar 5, 2022
1 parent 4107b39 commit e499cd2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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.
1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e499cd2

Please sign in to comment.