diff options
author | jbrjake <[email protected]> | 2008-04-08 05:11:25 +0000 |
---|---|---|
committer | jbrjake <[email protected]> | 2008-04-08 05:11:25 +0000 |
commit | 7da3020e5903f8c01987be8eb34bca1bad303a6f (patch) | |
tree | 6ebc172039def4450ab71506b1dec524c071f3d3 /test | |
parent | 0c600a71e35d7e2eada36cb55dc4b57c62b18f1a (diff) |
CLI: Generate default chapter marker titles when a marker file is not specified, that match the format used by the MacGui.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1392 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test')
-rw-r--r-- | test/test.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/test.c b/test/test.c index 4a87f62de..06f7cbf31 100644 --- a/test/test.c +++ b/test/test.c @@ -745,6 +745,21 @@ static int HandleEvents( hb_handle_t * h ) hb_close_csv_file( file ); } } + else + { + /* No marker file */ + + int number_of_chapters = hb_list_count(job->title->list_chapter); + int chapter; + + for(chapter = 0; chapter <= number_of_chapters - 1 ; chapter++) + { + hb_chapter_t * chapter_s; + chapter_s = hb_list_item( job->title->list_chapter, chapter); + snprintf( chapter_s->title, 1023, "Chapter %i", chapter + 1 ); + chapter_s->title[1023] = '\0'; + } + } } if( crop[0] >= 0 && crop[1] >= 0 && |