summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2010-09-29 15:31:56 +0000
committerjstebbins <[email protected]>2010-09-29 15:31:56 +0000
commit2faa581fa826c8a5057c823ca52d3381fc30b7e0 (patch)
tree8af1958a448494193ff86429ee41ab0f501bfd7c
parent03b2ce0e91c4e4ed44445a075ef5f35bc052b5b8 (diff)
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
-rw-r--r--libhb/decssasub.c2
1 files changed, 1 insertions, 1 deletions
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;