From 441931765ffe3de349b28a28bf10a006edcc9949 Mon Sep 17 00:00:00 2001 From: sudden6 Date: Mon, 23 Apr 2018 19:31:58 +0200 Subject: [PATCH] fix(build): make qTox compile with ffmpeg 4.0 and newer --- src/video/camerasource.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/video/camerasource.cpp b/src/video/camerasource.cpp index 8bd7a2ce5..a0386f0d8 100644 --- a/src/video/camerasource.cpp +++ b/src/video/camerasource.cpp @@ -109,7 +109,11 @@ CameraSource::CameraSource() moveToThread(deviceThread); subscriptions = 0; + +// TODO(sudden6): remove code when minimum ffmpeg version >= 4.0 +#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(58, 9, 100) av_register_all(); +#endif avdevice_register_all(); }