]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/xpmdec: rename yet another function
authorPaul B Mahol <onemda@gmail.com>
Sun, 12 Mar 2017 21:43:49 +0000 (22:43 +0100)
committerPaul B Mahol <onemda@gmail.com>
Sun, 12 Mar 2017 22:03:02 +0000 (23:03 +0100)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/xpmdec.c

index 7edb04c7616c179d3af7a2b8f96e86df072b1cfe..25ef992a1ccb551d95f64d6b904cd0f374430bb2 100644 (file)
@@ -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;
     }