summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libhb/sync.c9
1 files 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 );
+ }
}
}