diff options
author | jstebbins <[email protected]> | 2013-07-06 17:11:34 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2013-07-06 17:11:34 +0000 |
commit | 31d6e53fc21cac7d9607aa0d00605e7ec4f1c891 (patch) | |
tree | 3594b9c44a569c98ad6a86e2c4fccb5aa16f0316 /libhb/sync.c | |
parent | e813b92ad04a665e80210200c51d660237762aac (diff) |
libhb: handle zero length EOF subtitle properly
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5636 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/sync.c')
-rw-r--r-- | libhb/sync.c | 9 |
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 ); + } } } |