OSDN Git Service

CLI:
authorjbrjake <jbrjake@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sun, 23 Mar 2008 20:18:08 +0000 (20:18 +0000)
committerjbrjake <jbrjake@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sun, 23 Mar 2008 20:18:08 +0000 (20:18 +0000)
- If title->detected_interlacing is true, mention it in the non-verbose scan output
- Fixes a minor VFR bug that got the filter chain order wrong if other filters than detelecine were applied.

git-svn-id: svn://localhost/HandBrake/trunk@1360 b64f7644-9d1e-0410-96f1-a4d463321fa5

test/test.c

index daccad6..e85dd59 100644 (file)
@@ -300,6 +300,13 @@ static void PrintTitleInfo( hb_title_t * title )
         fprintf( stderr, "    + %d, %s (iso639-2: %s)\n", i + 1, subtitle->lang,
             subtitle->iso639_2);
     }
+    
+    if(title->detected_interlacing)
+    {
+        /* Interlacing was found in half or more of the preview frames */
+        fprintf( stderr, "  + combing detected, may be interlaced or telecined\n");
+    }
+    
 }
 
 static int HandleEvents( hb_handle_t * h )
@@ -725,6 +732,13 @@ static int HandleEvents( hb_handle_t * h )
             {
                 job->pixel_ratio = pixelratio;
             }
+            
+            if (vfr)
+            {
+                detelecine = 1;
+                job->vfr = 1;
+            }
+            
             /* Add selected filters */
             job->filters = hb_list_init();
             if( detelecine )
@@ -926,9 +940,6 @@ static int HandleEvents( hb_handle_t * h )
             if (maxHeight)
                 job->maxHeight = maxHeight;
 
-            if (vfr)
-                job->vfr = 1;
-
             if( subtitle_force )
             {
                 job->subtitle_force = subtitle_force;