]> git.sesse.net Git - nageru/blobdiff - main.cpp
Fix a deprecation warning.
[nageru] / main.cpp
index 745fb86f797f6b450f1bcc86220bdc1c8527defa..c1a52c0489a6d7b4e9054da338635290846cf1cb 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -71,7 +71,9 @@ int main(int argc, char *argv[])
                using_egl = true;
        }
        setlinebuf(stdout);
+#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(58, 9, 100)
        av_register_all();
+#endif
 
        QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true);