avcodec/tiff: more completely check bpp/bppcount