[DVDnav-discuss] r942 - trunk/libdvdnav2/src/searching.c
nicodvb
subversion at mplayerhq.hu
Wed Jul 11 23:22:43 CEST 2007
Author: nicodvb
Date: Wed Jul 11 23:22:43 2007
New Revision: 942
Log:
in dvdnav_sector_search() replaced check (length-offset<0) with safer (length<offset) ; patch by ggurob abv bg
Modified:
trunk/libdvdnav2/src/searching.c
Modified: trunk/libdvdnav2/src/searching.c
==============================================================================
--- trunk/libdvdnav2/src/searching.c (original)
+++ trunk/libdvdnav2/src/searching.c Wed Jul 11 23:22:43 2007
@@ -226,7 +226,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