summaryrefslogtreecommitdiff
path: root/tests/api
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 /tests/api
parentd1221f335183a07dae761551188677551e5ba792 (diff)
downloadffmpeg-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 'tests/api')
-rw-r--r--tests/api/api-band-test.c2
-rw-r--r--tests/api/api-codec-param-test.c2
-rw-r--r--tests/api/api-flac-test.c2
-rw-r--r--tests/api/api-h264-test.c2
-rw-r--r--tests/api/api-seek-test.c2
5 files changed, 0 insertions, 10 deletions
diff --git a/tests/api/api-band-test.c b/tests/api/api-band-test.c
index 5ccba4f766..a84f6b7e55 100644
--- a/tests/api/api-band-test.c
+++ b/tests/api/api-band-test.c
@@ -214,8 +214,6 @@ int main(int argc, char **argv)
return 1;
}
- av_register_all();
-
if (video_decode(argv[1]) != 0)
return 1;
diff --git a/tests/api/api-codec-param-test.c b/tests/api/api-codec-param-test.c
index 377a5e9c79..0868322cb4 100644
--- a/tests/api/api-codec-param-test.c
+++ b/tests/api/api-codec-param-test.c
@@ -231,8 +231,6 @@ int main(int argc, char* argv[])
AVFormatContext *fmt_ctx = NULL;
AVFormatContext *fmt_ctx_no_decode = NULL;
- av_register_all();
-
if (argc < 2) {
av_log(NULL, AV_LOG_ERROR, "Usage: %s <input>\n", argv[0]);
return -1;
diff --git a/tests/api/api-flac-test.c b/tests/api/api-flac-test.c
index c5a37f03e1..2e9081266f 100644
--- a/tests/api/api-flac-test.c
+++ b/tests/api/api-flac-test.c
@@ -245,8 +245,6 @@ int main(void)
int sample_rates[] = {8000, 44100, 48000, 192000};
int cl, sr;
- avcodec_register_all();
-
enc = avcodec_find_encoder(AV_CODEC_ID_FLAC);
if (!enc) {
av_log(NULL, AV_LOG_ERROR, "Can't find encoder\n");
diff --git a/tests/api/api-h264-test.c b/tests/api/api-h264-test.c
index 52282e0007..66669fa0c3 100644
--- a/tests/api/api-h264-test.c
+++ b/tests/api/api-h264-test.c
@@ -158,8 +158,6 @@ int main(int argc, char **argv)
return 1;
}
- av_register_all();
-
if (video_decode_example(argv[1]) != 0)
return 1;
diff --git a/tests/api/api-seek-test.c b/tests/api/api-seek-test.c
index 2b32cb9e4f..d0531a2f73 100644
--- a/tests/api/api-seek-test.c
+++ b/tests/api/api-seek-test.c
@@ -279,8 +279,6 @@ int main(int argc, char **argv)
return 1;
}
- av_register_all();
-
if (seek_test(argv[1], argv[2], argv[3]) != 0)
return 1;