[vlc-devel] [vlc-commits] packetizer: mpegvideo: parse color details if present

Rémi Denis-Courmont remi at remlab.net
Mon Apr 18 14:43:01 CEST 2016


Le 2016-04-18 14:18, git at videolan.org a écrit :
> +            int8_t color_primaries = p_frag->p_buffer[5];
> +            int8_t color_transfer  = p_frag->p_buffer[6];
> +            int8_t color_matrix    = p_frag->p_buffer[7];

This is UB if byte values have high order bit set.

-- 
Rémi Denis-Courmont
http://www.remlab.net/


More information about the vlc-devel mailing list