From 2faa581fa826c8a5057c823ca52d3381fc30b7e0 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Wed, 29 Sep 2010 15:31:56 +0000 Subject: [PATCH] fix a crash when ass_render_frame doesn't return a frame list. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3558 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/decssasub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libhb/decssasub.c b/libhb/decssasub.c index 99e4259a0..c02de3e85 100644 --- a/libhb/decssasub.c +++ b/libhb/decssasub.c @@ -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; -- 2.40.0