-
-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #454 from jellyfin/allow-vt-sw-decoder-fallback
lavc/videotoolbox: allow software fallback for all codecs
- Loading branch information
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
debian/patches/0071-allow-vt-sw-decoder-for-every-codec.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters