Skip to content

Commit

Permalink
Merge pull request #454 from jellyfin/allow-vt-sw-decoder-fallback
Browse files Browse the repository at this point in the history
lavc/videotoolbox: allow software fallback for all codecs
  • Loading branch information
nyanmisaka authored Sep 8, 2024
2 parents 26e5cdf + 4c8485a commit a46e174
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions debian/patches/0071-allow-vt-sw-decoder-for-every-codec.patch
Original file line number Diff line number Diff line change
@@ -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,
1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a46e174

Please sign in to comment.