diff options
author | John Stebbins <[email protected]> | 2017-03-28 13:19:01 -0600 |
---|---|---|
committer | John Stebbins <[email protected]> | 2017-03-28 13:19:01 -0600 |
commit | d2931487d39e433ad55737591d77aa66fb692aa8 (patch) | |
tree | 85ae05a38f02c525cb38527a0519bf65287b69bc /libhb/batch.c | |
parent | 9fe38b50b8f45e63e76fb4574778d17f7f1e92fe (diff) |
batch: fix crash when a stream scan fails
Diffstat (limited to 'libhb/batch.c')
-rw-r--r-- | libhb/batch.c | 2 |
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); |