diff --git a/libswresample/swresample_test.c b/libswresample/swresample_test.c index 7c6e466871..7af55b8389 100644 --- a/libswresample/swresample_test.c +++ b/libswresample/swresample_test.c @@ -237,14 +237,15 @@ int main(int argc, char **argv){ uint32_t rand_seed = 0; int remaining_tests[max_tests]; int test; + int specific_test= -1; struct SwrContext * forw_ctx= NULL; struct SwrContext *backw_ctx= NULL; if (argc > 1) { if (!strcmp(argv[1], "-h")) { - av_log(NULL, AV_LOG_INFO, "Usage: swresample-test []\n" - "Default is %d\n", num_tests); + av_log(NULL, AV_LOG_INFO, "Usage: swresample-test [[ ]] \n" + "num_tests Default is %d\n", num_tests); return 0; } num_tests = strtol(argv[1], NULL, 0); @@ -254,6 +255,9 @@ int main(int argc, char **argv){ } if(num_tests<= 0 || num_tests>max_tests) num_tests = max_tests; + if(argc > 2) { + specific_test = strtol(argv[1], NULL, 0); + } } for(i=0; i