From f29918602c968ea3b9a0949a87d2bbb20c1cf4e3 Mon Sep 17 00:00:00 2001 From: Aaro Altonen Date: Fri, 1 May 2020 15:21:38 +0300 Subject: [PATCH] Try to infer library from path --- benchmarks/parse.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/benchmarks/parse.pl b/benchmarks/parse.pl index e8ae0f2..1fd9eb3 100755 --- a/benchmarks/parse.pl +++ b/benchmarks/parse.pl @@ -234,6 +234,10 @@ GetOptions( "help" => \(my $help = 0) ) or die "failed to parse command line!\n"; +if (!$lib and $path =~ m/.*(uvgrtp|ffmpeg|gstreamer).*/i) { + $lib = $1; +} + if ($help or !$lib or !$iter) { print "usage (one file):\n ./parse.pl \n" . "\t--lib \n"