From 24debca2e1891bee285c85f00f8e9844f2e93ae6 Mon Sep 17 00:00:00 2001
From: Julian Rother <julianr@fsmpi.rwth-aachen.de>
Date: Mon, 13 Jun 2022 21:31:20 +0200
Subject: [PATCH] Remove deprecated ffmpeg library calls

---
 live_forward.c  | 1 -
 probe.c         | 1 -
 publish_video.c | 1 -
 remux.c         | 1 -
 thumbnail.c     | 1 -
 transcode.c     | 2 --
 6 files changed, 7 deletions(-)

diff --git a/live_forward.c b/live_forward.c
index 18bf0a9..d01a9be 100644
--- a/live_forward.c
+++ b/live_forward.c
@@ -14,7 +14,6 @@ int main(int argc, char *argv[])
 	AVDictionary *muxopts;
 	if (argc != 5)
 		return 1;
-	av_register_all();
 	avformat_network_init();
 	init_env();
 	init_avlogbuf();
diff --git a/probe.c b/probe.c
index 2d19b7a..4462784 100644
--- a/probe.c
+++ b/probe.c
@@ -69,7 +69,6 @@ int main(int argc, char *argv[])
 	AVDictionary *opts;
 	if (argc != 5)
 		return 1;
-	av_register_all();
 	init_env();
 	init_avlogbuf();
 
diff --git a/publish_video.c b/publish_video.c
index 887ff9f..ae4bb3f 100644
--- a/publish_video.c
+++ b/publish_video.c
@@ -9,7 +9,6 @@ int main(int argc, char *argv[])
 	char *src, *dest, *destdir;
 	if (argc != 5)
 		return 1;
-	av_register_all();
 	umask(S_IWOTH);
 	init_env();
 	init_avlogbuf();
diff --git a/remux.c b/remux.c
index d7d4e5f..ed14f77 100644
--- a/remux.c
+++ b/remux.c
@@ -14,7 +14,6 @@ int main(int argc, char *argv[])
 	AVDictionary *muxopts;
 	if (argc != 5)
 		return 1;
-	av_register_all();
 	init_env();
 	init_avlogbuf();
 	memset(&pkt, 0, sizeof(pkt));
diff --git a/thumbnail.c b/thumbnail.c
index 912679a..288120c 100644
--- a/thumbnail.c
+++ b/thumbnail.c
@@ -31,7 +31,6 @@ int main(int argc, char *argv[])
 	AVFrame *frame;
 	if (argc != 5)
 		return 1;
-	av_register_all();
 	avformat_network_init();
 	init_env();
 	init_avlogbuf();
diff --git a/transcode.c b/transcode.c
index a493f71..ece6ccd 100644
--- a/transcode.c
+++ b/transcode.c
@@ -263,8 +263,6 @@ int main(int argc, char *argv[])
 	AVDictionary *opts;
 	if (argc != 5)
 		return 1;
-	av_register_all();
-	avfilter_register_all();
 	init_env();
 	umask(S_IWOTH);
 	init_avlogbuf();
-- 
GitLab