aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/media/UMediaCore_FFmpeg.pas3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/media/UMediaCore_FFmpeg.pas b/src/media/UMediaCore_FFmpeg.pas
index 064d1ad7..daa3bd92 100644
--- a/src/media/UMediaCore_FFmpeg.pas
+++ b/src/media/UMediaCore_FFmpeg.pas
@@ -199,12 +199,13 @@ begin
inherited;
CheckVersions();
-
+
{$IF LIBAVFORMAT_VERSION < 52110000} // 52.110.0
av_register_protocol(@UTF8FileProtocol);
{$ELSE}
av_register_protocol2(@UTF8FileProtocol, sizeof(UTF8FileProtocol));
{$IFEND}
+
AVCodecLock := SDL_CreateMutex();
end;