summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJosh de Kock <josh@itanimul.li>2018-02-18 17:54:23 +0000
committerJosh de Kock <josh@itanimul.li>2018-04-02 03:26:22 +0100
commit89029bd2c7f385c078fba8f2a8c19229833caa13 (patch)
tree84e5ff213ed973be36026109e115831d38b10ff4 /tools
parentd1221f335183a07dae761551188677551e5ba792 (diff)
lav*,tests: remove several register_all calls
avdevice_register_all() is still required to register devices into lavf (this is required due to lavd being somewhat of a hack). Signed-off-by: Josh de Kock <josh@itanimul.li>
Diffstat (limited to 'tools')
-rw-r--r--tools/aviocat.c1
-rw-r--r--tools/enum_options.c2
-rw-r--r--tools/graph2dot.c2
-rw-r--r--tools/ismindex.c2
-rw-r--r--tools/pktdumper.c3
-rw-r--r--tools/probetest.c3
-rw-r--r--tools/seek_print.c1
-rw-r--r--tools/sidxindex.c2
-rw-r--r--tools/uncoded_frame.c2
9 files changed, 0 insertions, 18 deletions
diff --git a/tools/aviocat.c b/tools/aviocat.c
index 28529b06d6..2aa08b92ed 100644
--- a/tools/aviocat.c
+++ b/tools/aviocat.c
@@ -42,7 +42,6 @@ int main(int argc, char **argv)
AVDictionary *in_opts = NULL;
AVDictionary *out_opts = NULL;
- av_register_all();
avformat_network_init();
for (i = 1; i < argc; i++) {
diff --git a/tools/enum_options.c b/tools/enum_options.c
index c2a295cad6..77e1f9f799 100644
--- a/tools/enum_options.c
+++ b/tools/enum_options.c
@@ -130,8 +130,6 @@ int main(int argc, char **argv)
if (argc < 2)
print_usage();
- av_register_all();
-
if (!strcmp(argv[1], "format"))
show_format_opts();
else if (!strcmp(argv[1], "codec"))
diff --git a/tools/graph2dot.c b/tools/graph2dot.c
index 21d0795e88..d5c1e4e3c7 100644
--- a/tools/graph2dot.c
+++ b/tools/graph2dot.c
@@ -189,8 +189,6 @@ int main(int argc, char **argv)
*p = '\0';
}
- avfilter_register_all();
-
if (avfilter_graph_parse(graph, graph_string, NULL, NULL, NULL) < 0) {
fprintf(stderr, "Failed to parse the graph description\n");
return 1;
diff --git a/tools/ismindex.c b/tools/ismindex.c
index 0254a98ff7..7601f62e06 100644
--- a/tools/ismindex.c
+++ b/tools/ismindex.c
@@ -791,8 +791,6 @@ int main(int argc, char **argv)
int split = 0, ismf = 0, i;
struct Tracks tracks = { 0, .video_track = -1, .audio_track = -1 };
- av_register_all();
-
for (i = 1; i < argc; i++) {
if (!strcmp(argv[i], "-n")) {
basename = argv[i + 1];
diff --git a/tools/pktdumper.c b/tools/pktdumper.c
index 6516ad3a22..16a965b756 100644
--- a/tools/pktdumper.c
+++ b/tools/pktdumper.c
@@ -89,9 +89,6 @@ int main(int argc, char **argv)
strcat(fntemplate, PKTFILESUFF);
printf("FNTEMPLATE: '%s'\n", fntemplate);
- // register all file formats
- av_register_all();
-
err = avformat_open_input(&fctx, argv[1], NULL, NULL);
if (err < 0) {
fprintf(stderr, "cannot open input: error %d\n", err);
diff --git a/tools/probetest.c b/tools/probetest.c
index 74045eb498..2c6c1de246 100644
--- a/tools/probetest.c
+++ b/tools/probetest.c
@@ -124,9 +124,6 @@ int main(int argc, char **argv)
return 1;
}
- avcodec_register_all();
- av_register_all();
-
av_lfg_init(&state, 0xdeadbeef);
pd.buf = NULL;
diff --git a/tools/seek_print.c b/tools/seek_print.c
index de876b487c..9280421741 100644
--- a/tools/seek_print.c
+++ b/tools/seek_print.c
@@ -65,7 +65,6 @@ int main(int argc, char **argv)
argv++;
argc--;
- av_register_all();
if ((ret = avformat_open_input(&avf, filename, NULL, NULL)) < 0) {
fprintf(stderr, "%s: %s\n", filename, av_err2str(ret));
return 1;
diff --git a/tools/sidxindex.c b/tools/sidxindex.c
index be284610d5..a4f95515e4 100644
--- a/tools/sidxindex.c
+++ b/tools/sidxindex.c
@@ -363,8 +363,6 @@ int main(int argc, char **argv)
struct Tracks tracks = { 0 };
int i;
- av_register_all();
-
for (i = 1; i < argc; i++) {
if (!strcmp(argv[i], "-out")) {
out = argv[i + 1];
diff --git a/tools/uncoded_frame.c b/tools/uncoded_frame.c
index 3aaa4b6897..3f850d344d 100644
--- a/tools/uncoded_frame.c
+++ b/tools/uncoded_frame.c
@@ -62,9 +62,7 @@ int main(int argc, char **argv)
out_dev_name = argv + 2;
nb_out_dev = argc - 2;
- av_register_all();
avdevice_register_all();
- avfilter_register_all();
/* Create input graph */
if (!(in_graph = avfilter_graph_alloc())) {