diff options
author | Josh de Kock <josh@itanimul.li> | 2018-02-18 17:54:23 +0000 |
---|---|---|
committer | Josh de Kock <josh@itanimul.li> | 2018-04-02 03:26:22 +0100 |
commit | 89029bd2c7f385c078fba8f2a8c19229833caa13 (patch) | |
tree | 84e5ff213ed973be36026109e115831d38b10ff4 /tools | |
parent | d1221f335183a07dae761551188677551e5ba792 (diff) | |
download | ffmpeg-streaming-89029bd2c7f385c078fba8f2a8c19229833caa13.zip ffmpeg-streaming-89029bd2c7f385c078fba8f2a8c19229833caa13.tar.gz |
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.c | 1 | ||||
-rw-r--r-- | tools/enum_options.c | 2 | ||||
-rw-r--r-- | tools/graph2dot.c | 2 | ||||
-rw-r--r-- | tools/ismindex.c | 2 | ||||
-rw-r--r-- | tools/pktdumper.c | 3 | ||||
-rw-r--r-- | tools/probetest.c | 3 | ||||
-rw-r--r-- | tools/seek_print.c | 1 | ||||
-rw-r--r-- | tools/sidxindex.c | 2 | ||||
-rw-r--r-- | tools/uncoded_frame.c | 2 |
9 files changed, 0 insertions, 18 deletions
diff --git a/tools/aviocat.c b/tools/aviocat.c index 28529b0..2aa08b9 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 c2a295c..77e1f9f 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 21d0795..d5c1e4e 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 0254a98..7601f62 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 6516ad3..16a965b 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 74045eb..2c6c1de 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 de876b4..9280421 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 be28461..a4f9551 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 3aaa4b6..3f850d3 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())) { |