1
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-11-24 09:06:18 +00:00
Lakka-LibreELEC/projects/L4T/patches/lr_moonlight/lr_moonlight-02-Let-ffmpeg-choose-proper-decoder.patch
GavinDarkglider 800557a248
More Nintendo Switch fixes (#1548)
* Downgrade glibc to 2.27 for L4T Builds.
* Downgrade binutils to 2.32 for L4T Builds.
* Update L4T Project Options
* Refactor tegra-bsp package
* Import/Rebase CTC's ffmpeg patches, and switch decoder to nvv4l2 from nvmpi. Fixes decoder issues
* Enable all disabled cores
* Remove hack in busybox package to dump firmware into L4T Builds, we now handle this in tegra-bsp package.
* More L4T project cleanups
* Bring switch-bootloader package.mk inline with upstream formatting
* Fix reboot_payload
* Add proper tegra-bsp:init support
* Bootloader cleanups, seperate bootloader stuff for libreelec builds
* Update init for supporting all distros on Nintendo Switch
* Add proper splash images for libreelec builds.
* Final bootloader fixes
* switch-bootloader-merge-fixes
* Fix uboot merge issues
* fix bmp
* It all builds
* add Basic USB Gadget(Serial console only)
* Properly fix mtp, and finish gadget stuff
2022-03-03 21:48:22 +01:00

17 lines
773 B
Diff

diff -Naur moonlight-20d2d77/src/streaming/ffmpeg/FFmpegVideoDecoder.cpp moonlight-20d2d77-2/src/streaming/ffmpeg/FFmpegVideoDecoder.cpp
--- moonlight-20d2d77/src/streaming/ffmpeg/FFmpegVideoDecoder.cpp 2021-06-11 00:23:20.472732135 +0000
+++ moonlight-20d2d77-2/src/streaming/ffmpeg/FFmpegVideoDecoder.cpp 2021-06-11 00:26:21.582274704 +0000
@@ -36,10 +36,10 @@
switch (video_format) {
case VIDEO_FORMAT_H264:
- m_decoder = avcodec_find_decoder_by_name("h264");
+ m_decoder = avcodec_find_decoder(AV_CODEC_ID_H264);
break;
case VIDEO_FORMAT_H265:
- m_decoder = avcodec_find_decoder_by_name("hevc");
+ m_decoder = avcodec_find_decoder(AV_CODEC_ID_HEVC);
break;
}