summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorjbrjake <[email protected]>2009-12-09 19:12:05 +0000
committerjbrjake <[email protected]>2009-12-09 19:12:05 +0000
commit44271b50ac71961be9bf7fb5eb960124c09a0eea (patch)
treea4f012a3caee3df42a73afbe4b1bae99c0809f92 /libhb
parentce62b98b2a203007e879169d91d14cb5719fa7bb (diff)
Disables chapter markers when there is only one chapter. Most interfaces already do this, but now they have no choice.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3019 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r--libhb/work.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libhb/work.c b/libhb/work.c
index f4be983e3..05bf6a1f3 100644
--- a/libhb/work.c
+++ b/libhb/work.c
@@ -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 );