OSDN Git Service

MacGui: Fixed a memory leak in picturecontroller.mm added in #936
[handbrake-jp/handbrake-jp-git.git] / test / test.c
index 8694dc0..a5ddddf 100644 (file)
@@ -85,7 +85,7 @@ static int  HandleEvents( hb_handle_t * h );
  ****************************************************************************/
 static void hb_cli_error_handler ( const char *errmsg )
 {
-    hb_log( "ERROR: %s", errmsg );
+    fprintf( stderr, "ERROR: %s", errmsg );
 }
 
 int main( int argc, char ** argv )
@@ -632,7 +632,7 @@ static int HandleEvents( hb_handle_t * h )
 
                 job->x264opts = NULL;
 
-                job->subtitle_scan = subtitle_scan;  
+                job->indepth_scan = subtitle_scan;  
                 fprintf( stderr, "Subtitle Scan Enabled - enabling "
                          "subtitles if found for foreign language segments\n");
                 job->select_subtitle = malloc(sizeof(hb_subtitle_t*));
@@ -659,7 +659,7 @@ static int HandleEvents( hb_handle_t * h )
 
                 job->pass = 1;
 
-                job->subtitle_scan = 0;
+                job->indepth_scan = 0;
 
                 /*
                  * If turbo options have been selected then append them
@@ -702,7 +702,7 @@ static int HandleEvents( hb_handle_t * h )
                  * selected in the first pass (using the whacky select-subtitle
                  * attribute of the job).
                  */
-                job->subtitle_scan = 0;
+                job->indepth_scan = 0;
 
                 job->x264opts = x264opts2;
                 
@@ -715,7 +715,7 @@ static int HandleEvents( hb_handle_t * h )
                  * precludes encoding of any actual subtitles.
                  */ 
 
-                job->subtitle_scan = 0;
+                job->indepth_scan = 0;
                 job->pass = 0;
                 hb_add( h, job );
             }
@@ -828,10 +828,11 @@ static void ShowHelp()
        "    -Y, --maxHeight <#>     Set maximum height\n"
        "    -X, --maxWidth <#>      Set maximum width\n"
        "    -s, --subtitle <number> Select subtitle (default: none)\n"
-    "    -U, --subtitle-scan     Scan for subtitles on the first pass, and choose\n"
+    "    -U, --subtitle-scan     Scan for subtitles in an extra first pass, and choose\n"
     "                            the one that's only used 10 percent of the time\n"
     "                            or less. This should locate subtitles for short\n"
-    "                            foreign language segments. Only works with 2-pass.\n"
+    "                            foreign language segments. Best used in conjunction\n"
+    "                            with --subtitle-forced.\n"
     "    -F, --subtitle-forced   Only display subtitles from the selected stream if\n"
     "                            the subtitle has the forced flag set. May be used in\n"
     "                            conjunction with --subtitle-scan to auto-select\n"