[FFmpeg-cvslog] Set CD Graphics palette opaque.

Carl Eugen Hoyos git at videolan.org
Sat Nov 12 20:57:00 CET 2011


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sat Nov 12 20:01:50 2011 +0100| [973f3d3e0eef351de730c9cff017ab8c20bf8bd5] | committer: Carl Eugen Hoyos

Set CD Graphics palette opaque.

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

 libavcodec/cdgraphics.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/cdgraphics.c b/libavcodec/cdgraphics.c
index f7d9e5f..b87ca1d 100644
--- a/libavcodec/cdgraphics.c
+++ b/libavcodec/cdgraphics.c
@@ -126,7 +126,7 @@ static void cdg_load_palette(CDGraphicsContext *cc, uint8_t *data, int low)
         r = ((color >> 8) & 0x000F) * 17;
         g = ((color >> 4) & 0x000F) * 17;
         b = ((color     ) & 0x000F) * 17;
-        palette[i + array_offset] = r << 16 | g << 8 | b;
+        palette[i + array_offset] = 0xFF << 24 | r << 16 | g << 8 | b;
     }
     cc->frame.palette_has_changed = 1;
 }



More information about the ffmpeg-cvslog mailing list