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>
This commit is contained in:
Josh de Kock
2018-02-18 17:54:23 +00:00
parent d1221f3351
commit 89029bd2c7
28 changed files with 0 additions and 58 deletions

View File

@@ -214,8 +214,6 @@ int main(int argc, char **argv)
return 1;
}
av_register_all();
if (video_decode(argv[1]) != 0)
return 1;

View File

@@ -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;

View File

@@ -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");

View File

@@ -158,8 +158,6 @@ int main(int argc, char **argv)
return 1;
}
av_register_all();
if (video_decode_example(argv[1]) != 0)
return 1;

View File

@@ -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;