Commit 9158ea1e authored by Rafaël Carré's avatar Rafaël Carré Committed by Jean-Baptiste Kempf

ps_psm_fill: fix logic bug spotted by clang

(cherry picked from commit 415c1ab48a995b17c81f2be5d344bdb0499efbd7)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 184fc68a
...@@ -584,8 +584,8 @@ static inline int ps_psm_fill( ps_psm_t *p_psm, block_t *p_pkt, ...@@ -584,8 +584,8 @@ static inline int ps_psm_fill( ps_psm_t *p_psm, block_t *p_pkt,
i_length = (uint16_t)(p_buffer[4] << 8) + p_buffer[5] + 6; i_length = (uint16_t)(p_buffer[4] << 8) + p_buffer[5] + 6;
if( i_length > i_buffer ) return VLC_EGENERIC; if( i_length > i_buffer ) return VLC_EGENERIC;
//i_current_next_indicator = (p_buffer[6] && 0x01); //i_current_next_indicator = (p_buffer[6] & 0x01);
i_version = (p_buffer[6] && 0xf8); i_version = (p_buffer[6] & 0xf8);
if( p_psm->i_version == i_version ) return VLC_EGENERIC; if( p_psm->i_version == i_version ) return VLC_EGENERIC;
......
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