Commit 5b809589 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: mp4: fix condition

is array, not variable.
cid #1194828
parent 4d69a4c5
...@@ -1991,7 +1991,7 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track, ...@@ -1991,7 +1991,7 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
p_style->i_font_color = p_text->i_font_color >> 8; p_style->i_font_color = p_text->i_font_color >> 8;
p_style->i_font_alpha = p_text->i_font_color & 0xFF; p_style->i_font_alpha = p_text->i_font_color & 0xFF;
} }
if ( p_text->i_background_color ) if ( p_text->i_background_color[3] >> 8 )
{ {
p_style->i_background_color = p_text->i_background_color[0] >> 8; p_style->i_background_color = p_text->i_background_color[0] >> 8;
p_style->i_background_color |= p_text->i_background_color[1] >> 8; p_style->i_background_color |= p_text->i_background_color[1] >> 8;
......
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