avcodec/vc1: Skip chroma operations if CODEC_FLAG_GRAY is set