[FFmpeg-cvslog] Set Bethesda VID palette opaque.
Carl Eugen Hoyos
git at videolan.org
Sat Nov 12 20:56:59 CET 2011
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sat Nov 12 19:34:07 2011 +0100| [f98722443f3171327fcc10b523112cec1db1b1cb] | committer: Carl Eugen Hoyos
Set Bethesda VID palette opaque.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f98722443f3171327fcc10b523112cec1db1b1cb
---
libavcodec/bethsoftvideo.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/bethsoftvideo.c b/libavcodec/bethsoftvideo.c
index 9491abd..b316535 100644
--- a/libavcodec/bethsoftvideo.c
+++ b/libavcodec/bethsoftvideo.c
@@ -52,7 +52,7 @@ static void set_palette(AVFrame * frame, const uint8_t * palette_buffer)
uint32_t * palette = (uint32_t *)frame->data[1];
int a;
for(a = 0; a < 256; a++){
- palette[a] = AV_RB24(&palette_buffer[a * 3]) * 4;
+ palette[a] = 0xFF << 24 | AV_RB24(&palette_buffer[a * 3]) * 4;
}
frame->palette_has_changed = 1;
}
More information about the ffmpeg-cvslog
mailing list