[vlc-commits] DVDnav: kill a warning on read return

Jean-Baptiste Kempf git at videolan.org
Sat Aug 9 21:49:53 CEST 2014


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Aug  9 21:49:01 2014 +0200| [69af053b09a3109eb9c39180839e0155fa504a0f] | committer: Jean-Baptiste Kempf

DVDnav: kill a warning on read return

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=69af053b09a3109eb9c39180839e0155fa504a0f
---

 modules/access/dvdnav.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c
index 1ba59e2..826179e 100644
--- a/modules/access/dvdnav.c
+++ b/modules/access/dvdnav.c
@@ -1469,7 +1469,7 @@ static int ProbeDVD( const char *psz_name )
     /* ISO 9660 volume descriptor */
     char iso_dsc[6];
     if( lseek( fd, 0x8000 + 1, SEEK_SET ) == -1
-     || read( fd, iso_dsc, sizeof (iso_dsc) ) < sizeof (iso_dsc)
+     || read( fd, iso_dsc, sizeof (iso_dsc) ) < (int)sizeof (iso_dsc)
      || memcmp( iso_dsc, "CD001\x01", 6 ) )
         goto bailout;
 



More information about the vlc-commits mailing list