avcodec/webp: validate the distance prefix code