The two variables offset and length in function dvdnav_sector_search

From: Erik Hovland <erik@hovland.org>

are both unsigned types. So if you subtract one from the other
and test for less then zero it will have no effect. This is
because unsigned values will underflow and always be
non-negative. This patch changes the test so it will work properly.
---

 libs/libmythdvdnav/searching.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libs/libmythdvdnav/searching.c b/libs/libmythdvdnav/searching.c
index 4769bda..1524e9b 100644
--- a/libs/libmythdvdnav/searching.c
+++ b/libs/libmythdvdnav/searching.c
@@ -259,7 +259,7 @@ dvdnav_status_t dvdnav_sector_search(dvdnav_t *this,
     target += offset;
     break;
    case SEEK_END:
-    if(length - offset < 0) {
+    if(offset > length) {
       printerr("Request to seek before start.");
       pthread_mutex_unlock(&this->vm_lock);
       return DVDNAV_STATUS_ERR;
