[FFmpeg-cvslog] Always assume the bmp palette as being opaque.

Carl Eugen Hoyos git at videolan.org
Fri Dec 30 00:48:59 CET 2011


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Fri Dec 30 00:48:32 2011 +0100| [3a15051aba3c071ac1bff5ea91151a909dfa9257] | committer: Carl Eugen Hoyos

Always assume the bmp palette as being opaque.

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

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

diff --git a/libavcodec/bmp.c b/libavcodec/bmp.c
index 419c3fa..9a5c244 100644
--- a/libavcodec/bmp.c
+++ b/libavcodec/bmp.c
@@ -247,7 +247,7 @@ static int bmp_decode_frame(AVCodecContext *avctx,
                 ((uint32_t*)p->data[1])[i] = (0xff<<24) | bytestream_get_le24(&buf);
         }else{
             for(i = 0; i < colors; i++)
-                ((uint32_t*)p->data[1])[i] = bytestream_get_le32(&buf);
+                ((uint32_t*)p->data[1])[i] = 0xFFU << 24 | bytestream_get_le32(&buf);
         }
         buf = buf0 + hsize;
     }



More information about the ffmpeg-cvslog mailing list