From 6889f2cee49314aa380d4803991d645659efc01f Mon Sep 17 00:00:00 2001 From: Jason Garrett-Glaser Date: Tue, 6 Nov 2012 12:03:20 -0800 Subject: [PATCH] Fix crash with no-scenecut + mbtree --- encoder/slicetype.c | 1 + 1 file changed, 1 insertion(+) diff --git a/encoder/slicetype.c b/encoder/slicetype.c index 352de041..f4a91a8f 100644 --- a/encoder/slicetype.c +++ b/encoder/slicetype.c @@ -1124,6 +1124,7 @@ static void x264_macroblock_tree( x264_t *h, x264_mb_analysis_t *a, x264_frame_t if( !h->param.rc.i_lookahead ) { + x264_slicetype_frame_cost( h, a, frames, 0, last_nonb, last_nonb, 0 ); x264_macroblock_tree_propagate( h, frames, average_duration, 0, last_nonb, last_nonb, 1 ); XCHG( uint16_t*, frames[last_nonb]->i_propagate_cost, frames[0]->i_propagate_cost ); } -- 2.47.3