]> git.videolan.org Git - x264.git/commitdiff
Fix stack alignment in sliced threads
authorJason Garrett-Glaser <darkshikari@gmail.com>
Wed, 17 Mar 2010 22:53:43 +0000 (15:53 -0700)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Sat, 27 Mar 2010 19:47:26 +0000 (12:47 -0700)
Could cause crashes when called from non-GCC-compiled applications.

encoder/encoder.c

index c5ee306e42854b75c3db88c988f8235dbfc1db69..9f45e6a98e63d4e47e294bb2efad72d85864f2bf 100644 (file)
@@ -2100,7 +2100,7 @@ static int x264_threaded_slices_write( x264_t *h )
         t->sh.i_last_mb  =   t->i_threadslice_end * h->sps->i_mb_width - 1;
     }
 
-    x264_analyse_weight_frame( h, h->sps->i_mb_height*16 + 16 );
+    x264_stack_align( x264_analyse_weight_frame, h, h->sps->i_mb_height*16 + 16 );
 
     x264_threads_distribute_ratecontrol( h );
 
@@ -2121,7 +2121,7 @@ static int x264_threaded_slices_write( x264_t *h )
 
     /* deblocking and hpel filtering */
     for( i = 0; i <= h->sps->i_mb_height; i++ )
-        x264_fdec_filter_row( h, i );
+        x264_stack_align( x264_fdec_filter_row, h, i );
 
     x264_threads_merge_ratecontrol( h );