Commit f281f760 authored by François Cartegnie's avatar François Cartegnie 🤞

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

parent 7bdaaf2f
......@@ -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;
......
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