diff options
author | saintdev <[email protected]> | 2009-03-02 02:30:10 +0000 |
---|---|---|
committer | saintdev <[email protected]> | 2009-03-02 02:30:10 +0000 |
commit | 237081eafa3234411e138b0c9a25c701ad0c835d (patch) | |
tree | 66922cb75353a62cfa7b54a58da5b9236d62f6c8 | |
parent | 9389c53890e05723c97f2587a5b4a5bfa7fe70d5 (diff) |
Re-enable libswscale accurate rounding on x86_64.
The libswscale bug causing crashes was fixed a while ago.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2191 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | libhb/hb.c | 5 | ||||
-rw-r--r-- | libhb/render.c | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/libhb/hb.c b/libhb/hb.c index 0e36465fd..bc1c1f0a6 100644 --- a/libhb/hb.c +++ b/libhb/hb.c @@ -350,10 +350,7 @@ void hb_get_preview( hb_handle_t * h, hb_title_t * title, int picture, int rgb_width = ((job->width + 7) >> 3) << 3; int preview_size; - swsflags = SWS_LANCZOS; -#ifndef __x86_64__ - swsflags |= SWS_ACCURATE_RND; -#endif /* __x86_64__ */ + swsflags = SWS_LANCZOS | SWS_ACCURATE_RND; buf1 = av_malloc( avpicture_get_size( PIX_FMT_YUV420P, title->width, title->height ) ); buf2 = av_malloc( avpicture_get_size( PIX_FMT_YUV420P, title->width, title->height ) ); diff --git a/libhb/render.c b/libhb/render.c index 3dd239dae..55295a4c2 100644 --- a/libhb/render.c +++ b/libhb/render.c @@ -531,10 +531,7 @@ int renderInit( hb_work_object_t * w, hb_job_t * job ) w->private_data = pv; uint32_t swsflags; - swsflags = SWS_LANCZOS; -#ifndef __x86_64__ - swsflags |= SWS_ACCURATE_RND; -#endif /* __x86_64__ */ + swsflags = SWS_LANCZOS | SWS_ACCURATE_RND; /* Get title and title size */ hb_title_t * title = job->title; |