]> granicus.if.org Git - handbrake/commitdiff
libhb: Restore null check in decvobsub.c
authorBradley Sepos <bradley@bradleysepos.com>
Tue, 10 Sep 2019 16:41:39 +0000 (12:41 -0400)
committerBradley Sepos <bradley@bradleysepos.com>
Tue, 10 Sep 2019 16:41:39 +0000 (12:41 -0400)
Got a bit too aggressive in bbc27a32048fe6631116e5c5e66d7eebca1b7070.

libhb/decvobsub.c

index 5e7f347018a178ecbc999ae3c685f088c788f896..4a6a6ec94394c3e36ce13d72175016df6d4fd219 100644 (file)
@@ -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;