x86: Add and use more convenience macros to check CPU extension availability
x86: avcodec: Use convenience macros to check for CPU flags
x86: avcodec: Consistently structure CPU extension initialization