From 1c9c75d452c8d15ee972b4c4612763f9b95b1790 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Wed, 14 Oct 2009 01:04:03 +0000 Subject: [PATCH] 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://localhost/HandBrake/trunk@2885 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/decsrtsub.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libhb/decsrtsub.c b/libhb/decsrtsub.c index bf35c9e4..1bb540aa 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; -- 2.11.0