]> git.videolan.org Git - x264.git/commitdiff
Fix sliced-threads + interlaced
authorJason Garrett-Glaser <darkshikari@gmail.com>
Sun, 2 May 2010 18:45:15 +0000 (11:45 -0700)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Thu, 6 May 2010 05:08:27 +0000 (22:08 -0700)
Broken in r1546.

encoder/encoder.c

index e9819b30ecd813980f5a3b207ae2a8886928933d..7ad4295b9675fe01a85a91688f637635efb193e5 100644 (file)
@@ -2103,7 +2103,11 @@ static int x264_threaded_slices_write( x264_t *h )
 
     /* Go back and fix up the hpel on the borders between slices. */
     for( int i = 1; i < h->param.i_threads; i++ )
+    {
         x264_fdec_filter_row( h->thread[i], h->thread[i]->i_threadslice_start + 1, 0 );
+        if( h->sh.b_mbaff )
+            x264_fdec_filter_row( h->thread[i], h->thread[i]->i_threadslice_start + 2, 0 );
+    }
 
     x264_threads_merge_ratecontrol( h );