summaryrefslogtreecommitdiffstats
path: root/libhb/hb.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/hb.c')
-rw-r--r--libhb/hb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/hb.c b/libhb/hb.c
index 7b75e8511..94206e053 100644
--- a/libhb/hb.c
+++ b/libhb/hb.c
@@ -364,7 +364,7 @@ void hb_get_preview( hb_handle_t * h, hb_title_t * title, int picture,
title->height - (job->crop[0] + job->crop[1]),
PIX_FMT_YUV420P,
job->width, job->height, PIX_FMT_YUV420P,
- SWS_LANCZOS, NULL, NULL, NULL);
+ SWS_LANCZOS|SWS_ACCURATE_RND, NULL, NULL, NULL);
// Scale
sws_scale(context,
@@ -378,7 +378,7 @@ void hb_get_preview( hb_handle_t * h, hb_title_t * title, int picture,
// Get preview context
context = sws_getContext(job->width, job->height, PIX_FMT_YUV420P,
job->width, job->height, PIX_FMT_RGBA32,
- SWS_LANCZOS, NULL, NULL, NULL);
+ SWS_LANCZOS|SWS_ACCURATE_RND, NULL, NULL, NULL);
// Create preview
sws_scale(context,