x86: avcodec: Use convenience macros to check for CPU flags