From 84a051f3f1598c4c48de4c84f8750a73d32edeeb Mon Sep 17 00:00:00 2001 From: Jason Garrett-Glaser Date: Wed, 21 Jul 2010 11:25:11 -0700 Subject: [PATCH] Fix stack alignment with MB-tree Broke 2-pass with MB-tree when calling from compilers with broken stack alignment (e.g. MSVC). --- encoder/ratecontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.47.3