diff --git a/debian/patches/0071-allow-vt-sw-decoder-for-every-codec.patch b/debian/patches/0071-allow-vt-sw-decoder-for-every-codec.patch new file mode 100644 index 00000000000..eda581789e4 --- /dev/null +++ b/debian/patches/0071-allow-vt-sw-decoder-for-every-codec.patch @@ -0,0 +1,15 @@ +Index: FFmpeg/libavcodec/videotoolbox.c +=================================================================== +--- FFmpeg.orig/libavcodec/videotoolbox.c ++++ FFmpeg/libavcodec/videotoolbox.c +@@ -812,9 +812,7 @@ static CFDictionaryRef videotoolbox_deco + &kCFTypeDictionaryValueCallBacks); + + CFDictionarySetValue(config_info, +- codec_type == kCMVideoCodecType_HEVC ? +- kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDecoder : +- kVTVideoDecoderSpecification_RequireHardwareAcceleratedVideoDecoder, ++ kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDecoder, + kCFBooleanTrue); + + avc_info = CFDictionaryCreateMutable(kCFAllocatorDefault, diff --git a/debian/patches/series b/debian/patches/series index 673e304d493..a98ff7b05d1 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -68,3 +68,4 @@ 0068-add-pgs-support-to-vulkan-overlay.patch 0069-add-fixes-x265-build-from-upstream.patch 0070-fix-yuv420p-to-p01x-unscaled-conversion.patch +0071-allow-vt-sw-decoder-for-every-codec.patch