]> git.sesse.net Git - x264/commitdiff
Fix stack alignment with MB-tree
authorFiona Glaser <fiona@x264.com>
Wed, 21 Jul 2010 18:25:11 +0000 (11:25 -0700)
committerFiona Glaser <fiona@x264.com>
Wed, 21 Jul 2010 18:25:30 +0000 (11:25 -0700)
Broke 2-pass with MB-tree when calling from compilers with broken stack alignment (e.g. MSVC).

encoder/ratecontrol.c

index 9b19511f0876c5b0ed49aa672470f5ba05155fdc..5db51f064c4b9fc43d5e936c3fff87ac8d59890d 100644 (file)
@@ -386,7 +386,7 @@ int x264_macroblock_tree_read( x264_t *h, x264_frame_t *frame, float *quant_offs
         rc->qpbuf_pos--;
     }
     else
-        x264_adaptive_quant_frame( h, frame, quant_offsets );
+        x264_stack_align( x264_adaptive_quant_frame, h, frame, quant_offsets );
     return 0;
 fail:
     x264_log(h, X264_LOG_ERROR, "Incomplete MB-tree stats file.\n");