Skip to content
Snippets Groups Projects
Commit dd73c3e0 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

bitmapheader: fix alpha mask reading

It was already bogus when it was introduced 3274eb71.

Or the goal is to only support alpha with BGRA...

It is written properly in CreateBitmapInfoHeader().
parent 6c875b1f
No related branches found
No related tags found
1 merge request!4275bitmapheader: fix alpha mask reading
Pipeline #387731 passed with stages
in 24 minutes and 20 seconds
...@@ -149,7 +149,7 @@ static inline int ParseBitmapInfoHeader( VLC_BITMAPINFOHEADER *p_bih, size_t i_b ...@@ -149,7 +149,7 @@ static inline int ParseBitmapInfoHeader( VLC_BITMAPINFOHEADER *p_bih, size_t i_b
video_format_FixRgb( &fmt->video ); video_format_FixRgb( &fmt->video );
if( i_bihextra >= 4 * sizeof(uint32_t) ) /* Alpha channel ? */ if( i_bihextra >= 4 * sizeof(uint32_t) ) /* Alpha channel ? */
{ {
uint32_t i_alpha = GetDWLE( &p_bihextra[8] ); uint32_t i_alpha = GetDWLE( &p_bihextra[12] );
if( i_alpha == 0xFF ) if( i_alpha == 0xFF )
{ {
switch (fmt->i_codec) switch (fmt->i_codec)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment