[vlc-devel] [PATCH] dvdnav cannot be trusted to open regular files (fix #4741)

Rémi Denis-Courmont remi at remlab.net
Sat May 7 10:54:35 CEST 2011


---
 modules/access/dvdnav.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c
index c85378b..47348e4 100644
--- a/modules/access/dvdnav.c
+++ b/modules/access/dvdnav.c
@@ -1475,6 +1475,7 @@ static int ProbeDVD( const char *psz_name )
         goto bailout;
     }
 #endif
+#if 0
     /* Try to find the anchor (2 bytes at LBA 256) */
     uint16_t anchor;
 
@@ -1482,7 +1483,7 @@ static int ProbeDVD( const char *psz_name )
      && read( fd, &anchor, 2 ) == 2
      && GetWLE( &anchor ) == 2 )
         ret = VLC_SUCCESS; /* Found a potential anchor */
-
+#endif
 bailout:
     close( fd );
     return ret;
-- 
1.7.5.1




More information about the vlc-devel mailing list