Commit 28927ec1 authored by François Cartegnie's avatar François Cartegnie 🤞 Committed by Hugo Beauzée-Luyssen

demux: avi: 32bit has alpha padding on LE most significant

(cherry picked from commit f281f760)
Signed-off-by: 's avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 05871ea3
......@@ -612,8 +612,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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment