changeset 305:8615160a0521 src

a beauty mask
author nicodvb
date Sat, 14 Jul 2007 11:28:12 +0000
parents 0110b591bf9c
children 9aea3dbbfa91
files searching.c
diffstat 1 files changed, 5 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/searching.c	Sat Jul 14 11:25:44 2007 +0000
+++ b/searching.c	Sat Jul 14 11:28:12 2007 +0000
@@ -88,16 +88,13 @@
 
       /* fprintf(MSG_OUT, "libdvdnav: Found block %u\n", next_vobu); */
 
-      if(vobu_start <= seekto_block &&
-          next_vobu > seekto_block) {
+      if(vobu_start <= seekto_block && next_vobu > seekto_block)
         break;
-      } else {
-        vobu_start = next_vobu;
-      }
-      address ++;
+      vobu_start = next_vobu;
+      address++;
     }
-      *vobu = vobu_start;
-      return DVDNAV_STATUS_OK;
+    *vobu = vobu_start;
+    return DVDNAV_STATUS_OK;
   }
   fprintf(MSG_OUT, "libdvdnav: admap not located\n");
   return DVDNAV_STATUS_ERR;