summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libhb/decsrtsub.c7
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;