avcodec/xwddec: Check bpp more completely