diff options
author | saintdev <[email protected]> | 2008-03-21 03:06:02 +0000 |
---|---|---|
committer | saintdev <[email protected]> | 2008-03-21 03:06:02 +0000 |
commit | 9880cbfd5b0db35bff71efa524e11c6c4dcfbe68 (patch) | |
tree | 9cd9efb3b8e283637bb16441e365b6fa658c8847 /libhb/render.c | |
parent | 121258c9e4e2c3502e9a6c635d9b87ea92495cb7 (diff) |
libswscale accurate rounding is now re-enabled for all arches except x86_64.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1353 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/render.c')
-rw-r--r-- | libhb/render.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libhb/render.c b/libhb/render.c index 43a156b3c..275d05589 100644 --- a/libhb/render.c +++ b/libhb/render.c @@ -528,6 +528,12 @@ int renderInit( hb_work_object_t * w, hb_job_t * job ) hb_work_private_t * pv = calloc( 1, sizeof( hb_work_private_t ) ); pv->job = job; w->private_data = pv; + uint32_t swsflags; + + swsflags = SWS_LANCZOS; +#ifndef __x86_64__ + swsflags |= SWS_ACCURATE_RND; +#endif /* __x86_64__ */ /* Get title and title size */ hb_title_t * title = job->title; @@ -540,7 +546,7 @@ int renderInit( hb_work_object_t * w, hb_job_t * job ) title->height - (job->crop[0] + job->crop[1]), PIX_FMT_YUV420P, job->width, job->height, PIX_FMT_YUV420P, - (uint16_t)(SWS_LANCZOS|SWS_ACCURATE_RND), NULL, NULL, NULL); + swsflags, NULL, NULL, NULL); } /* Setup FIFO queue for subtitle cache */ |