From 4c1176432a806ed8d2d23bacfb4c7ffa5746a72e Mon Sep 17 00:00:00 2001 From: James Zern Date: Tue, 16 May 2017 18:34:29 +0000 Subject: [PATCH] webpinfo: correct background color output, BGRA->ARGB bgcolor is stored little-endian, byte order is BGRA, with A being the high byte Change-Id: I8327380c039634120ee2313044781a5651513dcb --- examples/webpinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/webpinfo.c b/examples/webpinfo.c index ebfa1d30..609825d4 100644 --- a/examples/webpinfo.c +++ b/examples/webpinfo.c @@ -672,7 +672,7 @@ static WebPInfoStatus ProcessANIMChunk(const ChunkData* const chunk_data, webp_info->loop_count_ = ReadLE16(&data); ++webp_info->chunk_counts_[CHUNK_ANIM]; if (!webp_info->quiet_) { - printf(" Background color:(BGRA) %02x %02x %02x %02x\n", + printf(" Background color:(ARGB) %02x %02x %02x %02x\n", (webp_info->bgcolor_ >> 24) & 0xff, (webp_info->bgcolor_ >> 16) & 0xff, (webp_info->bgcolor_ >> 8) & 0xff,