From: Jason Garrett-Glaser Date: Tue, 6 Nov 2012 20:03:20 +0000 (-0800) Subject: Fix crash with no-scenecut + mbtree X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=6889f2cee49314aa380d4803991d645659efc01f;p=x264.git Fix crash with no-scenecut + mbtree --- 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 ); }