[FFmpeg-cvslog] avidec: Set palette alpha as fully opaque

Vittorio Giovara git at videolan.org
Thu Mar 23 12:27:21 EET 2017


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Sun Oct  2 12:24:07 2016 -0400| [497c087939e32b26b792515d2dbc7e22561203f7] | committer: Vittorio Giovara

avidec: Set palette alpha as fully opaque

Palette format is always in RGBA.

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

 libavformat/avidec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index b2457d5..b07dabd 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -653,7 +653,7 @@ static int avi_read_header(AVFormatContext *s)
                         pal_src  = st->codecpar->extradata +
                                    st->codecpar->extradata_size - pal_size;
                         for (i = 0; i < pal_size / 4; i++)
-                            ast->pal[i] = AV_RL32(pal_src + 4 * i);
+                            ast->pal[i] = (0xFFu << 24) | AV_RL32(pal_src + 4 * i);
                         ast->has_pal = 1;
                     }
 



More information about the ffmpeg-cvslog mailing list