Browse Source

demux: webvtt: fix vlc_stream_Peek() read into an unsigned value

We need to check errors in vlc_stream_Peek() calls.
pull/193/head
Steve Lhomme 8 months ago
parent
commit
66d7893235
  1. 2
      modules/demux/webvtt.c

2
modules/demux/webvtt.c

@ -620,7 +620,7 @@ static int DemuxStream( demux_t *p_demux )
static int ProbeWEBVTT( demux_t *p_demux ) static int ProbeWEBVTT( demux_t *p_demux )
{ {
const uint8_t *p_peek; const uint8_t *p_peek;
size_t i_peek = vlc_stream_Peek( p_demux->s, &p_peek, 16 ); ssize_t i_peek = vlc_stream_Peek( p_demux->s, &p_peek, 16 );
if( i_peek < 16 ) if( i_peek < 16 )
return VLC_EGENERIC; return VLC_EGENERIC;

Loading…
Cancel
Save