[DVDnav-discuss] r941 - trunk/libdvdnav/src/searching.c

nicodvb subversion at mplayerhq.hu
Wed Jul 11 23:21:45 CEST 2007


Author: nicodvb
Date: Wed Jul 11 23:21:45 2007
New Revision: 941

Log:
in dvdnav_sector_search() replaced check (length-offset<0) with safer (length<offset) ; patch by ggurob abv bg

Modified:
   trunk/libdvdnav/src/searching.c

Modified: trunk/libdvdnav/src/searching.c
==============================================================================
--- trunk/libdvdnav/src/searching.c	(original)
+++ trunk/libdvdnav/src/searching.c	Wed Jul 11 23:21:45 2007
@@ -243,7 +243,7 @@ dvdnav_status_t dvdnav_sector_search(dvd
     target += offset;
     break;
    case SEEK_END:
-    if(length - offset < 0) {
+    if(length < offset) {
       printerr("Request to seek before start.");
       pthread_mutex_unlock(&this->vm_lock);
       return DVDNAV_STATUS_ERR;



More information about the DVDnav-discuss mailing list