Commit 407acf38 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

mpeg_audio: signed integer overflow

(with (uint8_t)255 << (int)24)
parent de7b556d
......@@ -264,8 +264,7 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
}
/* Build frame header */
i_header = (p_header[0]<<24)|(p_header[1]<<16)|(p_header[2]<<8)
|p_header[3];
i_header = GetDWBE(p_header);
/* Check if frame is valid and get frame info */
p_sys->i_frame_size = SyncInfo( i_header,
......@@ -324,8 +323,7 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
unsigned int i_next_layer;
/* Build frame header */
i_header = (p_header[0]<<24)|(p_header[1]<<16)|(p_header[2]<<8)
|p_header[3];
i_header = GetDWBE(p_header);
i_next_frame_size = SyncInfo( i_header,
&i_next_channels,
......
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