]> git.videolan.org Git - x264.git/commitdiff
Fix stack alignment with MB-tree
authorJason Garrett-Glaser <darkshikari@gmail.com>
Wed, 21 Jul 2010 18:25:11 +0000 (11:25 -0700)
committerJason Garrett-Glaser <darkshikari@gmail.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 93f2a307f0451856a14ac3b16b64ec11b75bc5af..ef197c44cc674a2e69e1a8f524d2e22cfd5cad8e 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");