]> git.videolan.org Git - x264.git/commitdiff
Fix rare deadlock introduced in weightp
authorJason Garrett-Glaser <darkshikari@gmail.com>
Sun, 15 Nov 2009 02:40:22 +0000 (18:40 -0800)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Sun, 15 Nov 2009 03:43:31 +0000 (19:43 -0800)
encoder/analyse.c

index 48499e1aeb7e489a0be9c61aedbe8ff26f592869..f88052c207f5f90234504611caae1f346e8cf894 100644 (file)
@@ -378,8 +378,7 @@ static void x264_mb_analyse_init( x264_t *h, x264_mb_analysis_t *a, int i_qp )
                     for( j=0; j<i_ref; j++ )
                     {
                         x264_frame_cond_wait( fref[j]->orig, thresh );
-                        fref[j]->i_lines_completed = fref[j]->orig->i_lines_completed;
-                        thread_mvy_range = X264_MIN( thread_mvy_range, fref[j]->i_lines_completed - pix_y );
+                        thread_mvy_range = X264_MIN( thread_mvy_range, fref[j]->orig->i_lines_completed - pix_y );
                     }
                 }