From: Jason Garrett-Glaser Date: Wed, 21 Jul 2010 18:25:11 +0000 (-0700) Subject: Fix stack alignment with MB-tree X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=84a051f3f1598c4c48de4c84f8750a73d32edeeb;p=x264.git Fix stack alignment with MB-tree Broke 2-pass with MB-tree when calling from compilers with broken stack alignment (e.g. MSVC). --- diff --git a/encoder/ratecontrol.c b/encoder/ratecontrol.c index 93f2a307..ef197c44 100644 --- a/encoder/ratecontrol.c +++ b/encoder/ratecontrol.c @@ -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");