From 3db6093244f46f580b2c1857179580e312b52954 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 5 May 2012 18:22:48 +0200 Subject: [PATCH] swr-test: allow testing a specific subset of cases Signed-off-by: Michael Niedermayer --- libswresample/swresample_test.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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