[FFmpeg-cvslog] avcodec/xpmdec: fix colors values which are different for X11

Paul B Mahol git at videolan.org
Mon Mar 13 00:09:03 EET 2017


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Mar 12 22:56:58 2017 +0100| [dd0090eb211219377bf43a034749d8e6524015eb] | committer: Paul B Mahol

avcodec/xpmdec: fix colors values which are different for X11

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dd0090eb211219377bf43a034749d8e6524015eb
---

 libavcodec/xpmdec.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavcodec/xpmdec.c b/libavcodec/xpmdec.c
index 592f81a..b9b2551 100644
--- a/libavcodec/xpmdec.c
+++ b/libavcodec/xpmdec.c
@@ -92,8 +92,8 @@ static const ColorEntry color_table[] = {
     { "GhostWhite",           0xFFF8F8FF },
     { "Gold",                 0xFFFFD700 },
     { "GoldenRod",            0xFFDAA520 },
-    { "Gray",                 0xFF808080 },
-    { "Green",                0xFF008000 },
+    { "Gray",                 0xFFBEBEBE },
+    { "Green",                0xFF00FF00 },
     { "GreenYellow",          0xFFADFF2F },
     { "HoneyDew",             0xFFF0FFF0 },
     { "HotPink",              0xFFFF69B4 },
@@ -122,7 +122,7 @@ static const ColorEntry color_table[] = {
     { "LimeGreen",            0xFF32CD32 },
     { "Linen",                0xFFFAF0E6 },
     { "Magenta",              0xFFFF00FF },
-    { "Maroon",               0xFF800000 },
+    { "Maroon",               0xFFB03060 },
     { "MediumAquaMarine",     0xFF66CDAA },
     { "MediumBlue",           0xFF0000CD },
     { "MediumOrchid",         0xFFBA55D3 },
@@ -155,7 +155,7 @@ static const ColorEntry color_table[] = {
     { "Pink",                 0xFFFFC0CB },
     { "Plum",                 0xFFDDA0DD },
     { "PowderBlue",           0xFFB0E0E6 },
-    { "Purple",               0xFF800080 },
+    { "Purple",               0xFFA020F0 },
     { "Red",                  0xFFFF0000 },
     { "RosyBrown",            0xFFBC8F8F },
     { "RoyalBlue",            0xFF4169E1 },



More information about the ffmpeg-cvslog mailing list