Browse Source

bluray: read vlc_stream_Peek() into a signed value

Only 2048 is accepted so it does not matter too much if a size_t is used,
but it's cleaner.

(cherry picked from commit 5aebff1013)
3.0.x
Steve Lhomme 8 months ago
parent
commit
043d9e7cf4
  1. 2
      modules/access/bluray.c

2
modules/access/bluray.c

@ -617,7 +617,7 @@ static int probeStream(demux_t *p_demux)
}
/* first sector(s) should be filled with zeros */
size_t i_peek;
ssize_t i_peek;
const uint8_t *p_peek;
i_peek = vlc_stream_Peek( p_demux->s, &p_peek, 2048 );
if( i_peek != 2048 ) {

Loading…
Cancel
Save