All pastes #748581 Raw Edit

accurate_rnd.patch

public diff v1 · immutable
#748581 ·published 2007-10-24 22:31 UTC
rendered paste body
diff --git a/libhb/render.c b/libhb/render.cindex edbd18a..b75bb06 100644--- a/libhb/render.c+++ b/libhb/render.c@@ -336,6 +336,12 @@ int renderInit( hb_work_object_t * w, hb_job_t * job )     pv->job = job;     w->private_data = pv; +    int sws_flags = SWS_LANCZOS;+#ifndef __x86_64__+    // Accurate rounding causes a segfault on x86_64 linux.+    context_flags |= SWS_ACCURATE_RND;+#endif+     /* Get title and title size */     hb_title_t * title = job->title; @@ -347,7 +353,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);+                                     context_flags, NULL, NULL, NULL);     }             /* Setup FIFO queue for subtitle cache */