avcodec/webp: add assert to ensure palette is not larger than 256