[vlc-devel] [PATCH] dvdnav: improve stream probing
Jean-Baptiste Kempf
jb at videolan.org
Mon Dec 21 13:34:27 CET 2015
On 20 Dec, Petri Hintukainen wrote :
> First sectors of DVD are filled with zeros.
> Checking boot sector avoids seeking when probing "regular" media files.
Pushed.
> + while (i_peek > 0) {
> + if (p_peek[ --i_peek ]) {
> + return VLC_EGENERIC;
> + }
> + }
Curiosity question:
Do we have a better function (libc, POSIX, C11, whatever) to check the nullity
of a big block, like this?
With my kindest regards,
--
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device
More information about the vlc-devel
mailing list