aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2017-03-12 22:43:49 +0100
committerPaul B Mahol <onemda@gmail.com>2017-03-12 23:03:02 +0100
commitfbc1f323dbda521a693737fd9d98ce1640e9a3de (patch)
treed15b6b74eefd59cf3b1447699bef249af962d297
parent9d7e71a233e33a3f1bf9a2b5a69f22dfa3613610 (diff)
downloadffmpeg-fbc1f323dbda521a693737fd9d98ce1640e9a3de.tar.gz
avcodec/xpmdec: rename yet another function
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavcodec/xpmdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/xpmdec.c b/libavcodec/xpmdec.c
index 7edb04c761..25ef992a1c 100644
--- a/libavcodec/xpmdec.c
+++ b/libavcodec/xpmdec.c
@@ -227,7 +227,7 @@ static size_t mod_strcspn(const char *string, const char *reject)
return i;
}
-static uint32_t hexstring_to_rgba(const char *p, int len)
+static uint32_t color_string_to_rgba(const char *p, int len)
{
uint32_t ret = 0xFF000000;
const ColorEntry *entry;
@@ -378,7 +378,7 @@ static int xpm_decode_frame(AVCodecContext *avctx, void *data,
if ((ret = ascii2index(index, cpp)) < 0)
return ret;
- x->pixels[ret] = hexstring_to_rgba(ptr, len);
+ x->pixels[ret] = color_string_to_rgba(ptr, len);
ptr += mod_strcspn(ptr, ",") + 1;
}