Hi,

Please consider checking and applying the attached patch. It fixes a segfault occuring with some DVDs. It seems to be the same problem as the one mentionned here: https://bugs.launchpad.net/ubuntu/+source/libdvdnav/+bug/934471

In my case, "cellnr" and "endcellnr" variables were set to 0 when the crash occured.

Cheers
Sylvain

PS: I'm not registered on the mailing-list, please answer directly to me if necessary
Index: src/searching.c
===================================================================
--- src/searching.c	(révision 1243)
+++ src/searching.c	(copie de travail)
@@ -628,7 +628,7 @@
     else
       endcellnr = 0;
 
-    do {
+    while(cellnr < endcellnr) {
       cell = &pgc->cell_playback[cellnr-1];
       if(!(cell->block_type == BLOCK_TYPE_ANGLE_BLOCK &&
            cell->block_mode != BLOCK_MODE_FIRST_CELL
@@ -638,7 +638,7 @@
         length = tmp[i];
       }
       cellnr++;
-    } while(cellnr < endcellnr);
+    }
   }
   *duration = length;
   vm_ifo_close(ifo);
_______________________________________________
DVDnav-discuss mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/dvdnav-discuss

Reply via email to