From 2f14bd7a852f731a02aabba6f1697cddccb2adcc Mon Sep 17 00:00:00 2001 From: Bradley Sepos Date: Tue, 10 Sep 2019 12:41:39 -0400 Subject: [PATCH] libhb: Restore null check in decvobsub.c Got a bit too aggressive in bbc27a32048fe6631116e5c5e66d7eebca1b7070. --- libhb/decvobsub.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libhb/decvobsub.c b/libhb/decvobsub.c index 5e7f34701..4a6a6ec94 100644 --- a/libhb/decvobsub.c +++ b/libhb/decvobsub.c @@ -168,7 +168,8 @@ int decsubWork( hb_work_object_t * w, hb_buffer_t ** buf_in, /* We got a complete subtitle, decode it */ *buf_out = Decode( w ); - (*buf_out)->s.id = in->s.id; + if ( *buf_out != NULL ) + (*buf_out)->s.id = in->s.id; /* Wait for the next one */ pv->size_sub = 0; -- 2.49.0