]> granicus.if.org Git - libx264/commitdiff
Fix noise reduction in threaded mode.
authorAlexander Strange <astrange@ithinksw.com>
Mon, 2 Jun 2008 18:16:51 +0000 (12:16 -0600)
committerFiona Glaser <fiona@x264.com>
Mon, 2 Jun 2008 18:39:53 +0000 (12:39 -0600)
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).

encoder/encoder.c

index 39c5d5f1f1f1a4466089cb8565791d3be777d11e..aa9d3722cbf01dc78dc82a043f8cea98bf6be481 100644 (file)
@@ -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] );