diff options
author | van <[email protected]> | 2008-04-15 19:15:40 +0000 |
---|---|---|
committer | van <[email protected]> | 2008-04-15 19:15:40 +0000 |
commit | fd01e998d0c8e907417501e819fc711c7d4e6e5a (patch) | |
tree | 6478d0d2be8fd2a1ff50d5fbfcad46255606d975 /libhb/decmpeg2.c | |
parent | 56d9caaefb91abc763be3a1d17d14d0e7e2e9059 (diff) |
Print a log line for the first chapter.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1421 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/decmpeg2.c')
-rw-r--r-- | libhb/decmpeg2.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libhb/decmpeg2.c b/libhb/decmpeg2.c index baea63736..3bdceed70 100644 --- a/libhb/decmpeg2.c +++ b/libhb/decmpeg2.c @@ -196,6 +196,14 @@ int hb_libmpeg2_decode( hb_libmpeg2_t * m, hb_buffer_t * buf_es, } hb_log( "mpeg2: \"%s\" (%d) at frame %u time %lld", chap_name, buf->new_chap, m->nframes, buf->start ); + } else if ( m->nframes == 0 && m->job && + hb_list_item( m->job->title->list_chapter, + m->job->chapter_start - 1 ) ) + { + hb_chapter_t * c = hb_list_item( m->job->title->list_chapter, + m->job->chapter_start - 1 ); + hb_log( "mpeg2: \"%s\" (%d) at frame %u time %lld", c->title, + m->job->chapter_start, m->nframes, buf->start ); } ++m->nframes; |