OSDN Git Service

Disables chapter markers when there is only one chapter. Most interfaces already...
authorjbrjake <jbrjake@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Wed, 9 Dec 2009 19:12:05 +0000 (19:12 +0000)
committerjbrjake <jbrjake@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Wed, 9 Dec 2009 19:12:05 +0000 (19:12 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@3019 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/work.c

index f4be983..05bf6a1 100644 (file)
@@ -883,6 +883,12 @@ static void do_job( hb_job_t * job, int cpu_count )
             }
         }
     }
+    
+    if( job->chapter_markers && job->chapter_start == job->chapter_end )
+    {
+        job->chapter_markers = 0;
+        hb_log("work: only 1 chapter, disabling chapter markers");
+    }
 
     /* Display settings */
     hb_display_job_info( job );