diff options
author | jstebbins <[email protected]> | 2010-09-29 15:31:56 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-09-29 15:31:56 +0000 |
commit | 2faa581fa826c8a5057c823ca52d3381fc30b7e0 (patch) | |
tree | 8af1958a448494193ff86429ee41ab0f501bfd7c /libhb | |
parent | 03b2ce0e91c4e4ed44445a075ef5f35bc052b5b8 (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
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/decssasub.c | 2 |
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; |