x86/cpu: check for OS support before enabling AVX2
authorJames Almer <jamrial@gmail.com>
Tue, 25 Mar 2014 08:27:08 +0000 (05:27 -0300)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 25 Mar 2014 16:56:43 +0000 (17:56 +0100)
commit2d9821a2081aff5dca253386c6e7e71a04509cff
treefea64329cf903fccd4df414dd6ffdf7236e47147
parent4d9881e1cc204e4acf9035e46895e274cdc0290d
x86/cpu: check for OS support before enabling AVX2

AV_CPU_FLAG_AVX is enabled at this point only if there's OS support.

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/x86/cpu.c