diff options
author | Rodeo <[email protected]> | 2013-05-14 20:19:48 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2013-05-14 20:19:48 +0000 |
commit | a080bd20151cc8d21522ad731cc9a2312a26f68c (patch) | |
tree | d6d6434fadf04c25c7ea69754ad682fe6b18d62b /libhb/decsrtsub.c | |
parent | 440e227cc4cddbb0461391b2a0d56d94b75f1c31 (diff) |
decsrtsub: clear remnants of the previous line before progessing a new one.
I don't really understand why, but this prevents miscellaneous subtitle corruption.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5456 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/decsrtsub.c')
-rw-r--r-- | libhb/decsrtsub.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libhb/decsrtsub.c b/libhb/decsrtsub.c index 7664e1378..74377552e 100644 --- a/libhb/decsrtsub.c +++ b/libhb/decsrtsub.c @@ -166,6 +166,9 @@ static int get_line( hb_work_private_t * pv, char *buf, int size ) int i; char c; + // clear remnants of the previous line before progessing a new one + memset(buf, '\0', size); + /* Find newline in converted UTF-8 buffer */ for( i = 0; i < size - 1; i++ ) { |