]> granicus.if.org Git - libx264/commitdiff
Fix rare deadlock introduced in weightp
authorFiona Glaser <fiona@x264.com>
Sun, 15 Nov 2009 02:40:22 +0000 (18:40 -0800)
committerFiona Glaser <fiona@x264.com>
Sun, 15 Nov 2009 03:43:31 +0000 (19:43 -0800)
encoder/analyse.c

index 07cf5a7c07c7425eb1be935d9a24a6130ce19b06..55dbfa0223c22fd70448b08edee1188af90818d0 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 );
                     }
                 }