[vlc-commits] demux: avi: 32bit has alpha padding on LE most significant
Francois Cartegnie
git at videolan.org
Thu Mar 1 10:44:17 CET 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Feb 28 19:38:32 2018 +0100| [f281f7606bb5b61e6599b19eabf06378d7538d85] | committer: Francois Cartegnie
demux: avi: 32bit has alpha padding on LE most significant
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f281f7606bb5b61e6599b19eabf06378d7538d85
---
modules/demux/avi/avi.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 8d98410339..4bfc14c715 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -608,8 +608,12 @@ static int Open( vlc_object_t * p_this )
switch( tk->fmt.i_codec )
{
- case VLC_CODEC_RGB24:
- case VLC_CODEC_RGB32: /* BGR (see biBitCount) */
+ case VLC_CODEC_RGB32:
+ tk->fmt.video.i_bmask = 0xff000000;
+ tk->fmt.video.i_gmask = 0x00ff0000;
+ tk->fmt.video.i_rmask = 0x0000ff00;
+ break;
+ case VLC_CODEC_RGB24: /* BGR (see biBitCount) */
tk->fmt.video.i_bmask = 0x00ff0000;
tk->fmt.video.i_gmask = 0x0000ff00;
tk->fmt.video.i_rmask = 0x000000ff;
More information about the vlc-commits
mailing list