summaryrefslogtreecommitdiffstats
path: root/libhb/batch.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/batch.c')
-rw-r--r--libhb/batch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/batch.c b/libhb/batch.c
index cc7808e6c..bab7ab983 100644
--- a/libhb/batch.c
+++ b/libhb/batch.c
@@ -139,7 +139,7 @@ hb_title_t * hb_batch_title_scan( hb_batch_t * d, int t, uint64_t min_duration )
title = hb_stream_title_scan( stream, title );
hb_stream_close( &stream );
- if( title->duration < min_duration )
+ if( title != NULL && title->duration < min_duration )
{
hb_log( "batch: ignoring title (too short)" );
hb_title_close(&title);