Skip to content

Display and control your Android device

Do not call deprecated av_register_all()

Romain Vimontfca806e0954b
diff --git a/app/src/main.c b/app/src/main.c
index 7e13a028..4e4de808 100644
--- a/app/src/main.c
+++ b/app/src/main.c
@@ -274,7 +274,9 @@ int main(int argc, char *argv[]) {
return 0;
}
+#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 9, 100)
av_register_all();
+#endif
if (avformat_network_init()) {
return 1;