]> granicus.if.org Git - handbrake/commitdiff
fix a crash when ass_render_frame doesn't return a frame list.
authorjstebbins <jstebbins.hb@gmail.com>
Wed, 29 Sep 2010 15:31:56 +0000 (15:31 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Wed, 29 Sep 2010 15:31:56 +0000 (15:31 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3558 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/decssasub.c

index 99e4259a0470be8dc1035bec950a4d2a1406d8e2..c02de3e85456016f3976d0e2e741c7f1ca978bbe 100644 (file)
@@ -370,7 +370,7 @@ static hb_buffer_t *ssa_decode_line_to_picture( hb_work_object_t * w, uint8_t *i
     
     int changed;
     ASS_Image *frameList = ass_render_frame( pv->renderer, pv->ssaTrack, renderTime / 90, &changed );
-    if ( !changed && !frameList )
+    if ( !changed || !frameList )
         return NULL;
     
     int numFrames = 0;