OSDN Git Service

dvdnav: fix crash when poorly masterd disc has no menus
[handbrake-jp/handbrake-jp-git.git] / test / test.c
index 54d7631..41bbe51 100644 (file)
@@ -30,7 +30,7 @@
 #endif
 
 /* Options */
-static int    debug       = HB_DEBUG_NONE;
+static int    debug       = HB_DEBUG_ALL;
 static int    update      = 0;
 static int    dvdnav      = 0;
 static char * input       = NULL;
@@ -1382,7 +1382,8 @@ static int HandleEvents( hb_handle_t * h )
                 }
             }
 
-            if( hb_list_count(audios) == 0 )
+            if( hb_list_count(audios) == 0 &&
+                hb_list_count(job->title->list_audio) > 0 )
             {        
                 /* Create a new audio track with default settings */
                 audio = calloc(1, sizeof(*audio));