summaryrefslogtreecommitdiffstats
path: root/libhb/bd.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2010-11-05 21:56:32 +0000
committerjstebbins <[email protected]>2010-11-05 21:56:32 +0000
commit87f6546defc189877fefc14caf6928773c06f5b2 (patch)
tree05aa03ee21dc2a9710b209df2c8051ea058d481a /libhb/bd.c
parent4f9afabcd99a47c9914768363c213346c8f56ecb (diff)
log the title duration before throwing it out when it's too short
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3649 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/bd.c')
-rw-r--r--libhb/bd.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libhb/bd.c b/libhb/bd.c
index ca09ce733..4e682af00 100644
--- a/libhb/bd.c
+++ b/libhb/bd.c
@@ -133,13 +133,6 @@ hb_title_t * hb_bd_title_scan( hb_bd_t * d, int tt, uint64_t min_duration )
title->angle_count = ti->angle_count;
- /* ignore short titles because they're often stills */
- if( ti->duration < min_duration )
- {
- hb_log( "bd: ignoring title (too short)" );
- goto fail;
- }
-
/* Get duration */
title->duration = ti->duration;
title->hours = title->duration / 90000 / 3600;
@@ -149,6 +142,13 @@ hb_title_t * hb_bd_title_scan( hb_bd_t * d, int tt, uint64_t min_duration )
title->hours, title->minutes, title->seconds,
title->duration / 90 );
+ /* ignore short titles because they're often stills */
+ if( ti->duration < min_duration )
+ {
+ hb_log( "bd: ignoring title (too short)" );
+ goto fail;
+ }
+
BLURAY_STREAM_INFO * bdvideo = &ti->clips[0].video_streams[0];
title->video_id = bdvideo->pid;