From: Alexander Strange Date: Mon, 2 Jun 2008 18:16:51 +0000 (-0600) Subject: Fix noise reduction in threaded mode. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=344cb1693dbe1471a3a94fef3156e94d684350de;p=libx264 Fix noise reduction in threaded mode. Previously enabling noise reduction with threads had no effect. Note that this is not an optimal solution; each thread still tracks noise reducation separately (unlike in single-threaded mode). --- diff --git a/encoder/encoder.c b/encoder/encoder.c index 39c5d5f1..aa9d3722 100644 --- a/encoder/encoder.c +++ b/encoder/encoder.c @@ -1602,7 +1602,7 @@ static void x264_encoder_frame_end( x264_t *h, x264_t *thread_current, /* restore CPU state (before using float again) */ x264_emms(); - x264_noise_reduction_update( h ); + x264_noise_reduction_update( thread_current ); /* ---------------------- Compute/Print statistics --------------------- */ x264_thread_sync_stat( h, h->thread[0] );