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:
@@ -214,8 +214,6 @@ int main(int argc, char **argv)
|
||||
return 1;
|
||||
}
|
||||
|
||||
av_register_all();
|
||||
|
||||
if (video_decode(argv[1]) != 0)
|
||||
return 1;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -158,8 +158,6 @@ int main(int argc, char **argv)
|
||||
return 1;
|
||||
}
|
||||
|
||||
av_register_all();
|
||||
|
||||
if (video_decode_example(argv[1]) != 0)
|
||||
return 1;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user