All pastes #777684 Raw Edit

Mine

public text v1 · immutable
·published 2007-11-16 23:15 UTC
rendered paste body
Index: libhb/dvd.c
===================================================================
--- libhb/dvd.c	(revision 1063)
+++ libhb/dvd.c	(working copy)
@@ -146,6 +146,12 @@
     /* VTS which our title is in */
     title->vts = d->vmg->tt_srpt->title[t-1].title_set_nr;
 
+    if (!title->vts)
+    {
+        hb_error("Invalid VTS number!");
+        goto fail;
+    }
+    
     hb_log( "scan: opening IFO for VTS %d", title->vts );
     if( !( vts = ifoOpen( d->reader, title->vts ) ) )
     {