diff options
-rw-r--r-- | libhb/scan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/scan.c b/libhb/scan.c index 7dfb44c60..40dffa01e 100644 --- a/libhb/scan.c +++ b/libhb/scan.c @@ -1119,9 +1119,9 @@ static void UpdateState2(hb_scan_t *scan, int title) p.preview_cur = 1; p.preview_count = scan->preview_count; if (scan->title_index) - p.progress = (float)p.title_cur / p.title_count; + p.progress = (float)(p.title_cur - 1) / p.title_count; else - p.progress = 0.5 + 0.5 * (float)p.title_cur / p.title_count; + p.progress = 0.5 + 0.5 * (float)(p.title_cur - 1) / p.title_count; #undef p hb_set_state(scan->h, &state); |