From 31d6e53fc21cac7d9607aa0d00605e7ec4f1c891 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Sat, 6 Jul 2013 17:11:34 +0000 Subject: libhb: handle zero length EOF subtitle properly git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5636 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/sync.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libhb/sync.c b/libhb/sync.c index b34be5690..c04e517d4 100644 --- a/libhb/sync.c +++ b/libhb/sync.c @@ -757,9 +757,12 @@ int syncVideoWork( hb_work_object_t * w, hb_buffer_t ** buf_in, // muxer or renderer filter. while ( ( sub = hb_fifo_get( subtitle->fifo_raw ) ) != NULL ) { - out = sanitizeSubtitle(pv, i, sub); - if (out != NULL) - hb_fifo_push( subtitle->fifo_out, out ); + if (sub->size > 0) + { + out = sanitizeSubtitle(pv, i, sub); + if (out != NULL) + hb_fifo_push( subtitle->fifo_out, out ); + } } } -- cgit v1.2.3