Commit 415c1ab4 authored by Rafaël Carré's avatar Rafaël Carré

ps_psm_fill: fix logic bug spotted by clang

parent c4c377bd
...@@ -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