Added version check for deprecated ffmpeg symbols

(cherry picked from commit 80b25de1a8)
This commit is contained in:
Armin Novak 2021-04-29 13:18:57 +02:00 committed by akallabeth
parent bd3c2d9517
commit 93b87ed417

View File

@ -506,7 +506,10 @@ static BOOL libavcodec_init(H264_CONTEXT* h264)
}
h264->pSystemData = (void*)sys;
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 137, 100)
avcodec_register_all();
#endif
if (!h264->Compressor)
{