diff options
author | jstebbins <[email protected]> | 2009-10-14 01:04:03 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-10-14 01:04:03 +0000 |
commit | b6c8cc234520ec5652e0b2f2e967b8a6a675d55a (patch) | |
tree | 18f7b1ef62967773c72dfa0a6d4200b4a838662d | |
parent | 55978f89508f94744eb14b36ae23f079e871bb10 (diff) |
fix reading of short srt subtitle files
if the whole file is consumed before filling the output buffer during
the iconv conversion, the subtitles would be dropped
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2885 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | libhb/decsrtsub.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libhb/decsrtsub.c b/libhb/decsrtsub.c index bf35c9e45..1bb540aa0 100644 --- a/libhb/decsrtsub.c +++ b/libhb/decsrtsub.c @@ -89,7 +89,12 @@ static int utf8_fill( hb_work_private_t * pv ) pv->pos = 0; pv->end = bytes; if( bytes == 0 ) - return 0; + { + if( conversion ) + return 1; + else + return 0; + } } p = pv->buf + pv->pos; |