Call avcodec_register_all in case of old ffmpeg

Apparently it's still possible to break without it.
This commit is contained in:
Nekotekina 2022-01-23 15:23:54 +03:00
parent 12c83b340d
commit 065ee621b8

View File

@ -1219,6 +1219,10 @@ error_code cellVdecSetPts(u32 handle, vm::ptr<void> 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");