From 065ee621b8758326b39354edce0931878b98a579 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Sun, 23 Jan 2022 15:23:54 +0300 Subject: [PATCH] Call avcodec_register_all in case of old ffmpeg Apparently it's still possible to break without it. --- rpcs3/Emu/Cell/Modules/cellVdec.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rpcs3/Emu/Cell/Modules/cellVdec.cpp b/rpcs3/Emu/Cell/Modules/cellVdec.cpp index bb73ce3212..1e8290fc55 100644 --- a/rpcs3/Emu/Cell/Modules/cellVdec.cpp +++ b/rpcs3/Emu/Cell/Modules/cellVdec.cpp @@ -1219,6 +1219,10 @@ error_code cellVdecSetPts(u32 handle, vm::ptr unk) DECLARE(ppu_module_manager::cellVdec)("libvdec", []() { +#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 10, 100) + avcodec_register_all(); +#endif + static ppu_static_module libavcdec("libavcdec"); static ppu_static_module libdivx311dec("libdivx311dec"); static ppu_static_module libdivxdec("libdivxdec");