mirror of
https://github.com/opencv/opencv.git
synced 2025-07-24 14:06:27 +08:00
samples: skip findFile() in encoding mode
This commit is contained in:
parent
aab9ef4290
commit
a51d46cbf9
@ -266,7 +266,10 @@ int main(int argc, char *argv[])
|
||||
cout << "Unsupported mode: " << mode << endl;
|
||||
return -1;
|
||||
}
|
||||
file_name = samples::findFile(file_name);
|
||||
if (mode == "decode")
|
||||
{
|
||||
file_name = samples::findFile(file_name);
|
||||
}
|
||||
cout << "Mode: " << mode << ", Backend: " << backend << ", File: " << file_name << ", Codec: " << codec << endl;
|
||||
|
||||
TickMeter total;
|
||||
|
Loading…
Reference in New Issue
Block a user