avcodec/magicyuv: Check len to be supported