Commit 1b168e3b authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/cpu: fix cpu-test to work with ffmpegs cpuflags syntax

Found-by: jamrial
Signed-off-by: 's avatarMichael Niedermayer <>
parent 296b01d7
......@@ -357,10 +357,11 @@ int main(int argc, char **argv)
switch (c) {
case 'c':
int cpuflags = av_parse_cpu_flags(optarg);
if (cpuflags < 0)
unsigned flags = av_get_cpu_flags();
if (av_parse_cpu_caps(&flags, optarg) < 0)
return 2;
case 't':
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment