]> git.videolan.org Git - x264.git/commitdiff
Fix crash with no-scenecut + mbtree
authorJason Garrett-Glaser <jason@x264.com>
Tue, 6 Nov 2012 20:03:20 +0000 (12:03 -0800)
committerJason Garrett-Glaser <jason@x264.com>
Wed, 7 Nov 2012 22:48:37 +0000 (14:48 -0800)
encoder/slicetype.c

index 352de041873f2e8de75684e35ada00b96ce08ce8..f4a91a8f4b156899dce2043242bae82a92e9118d 100644 (file)
@@ -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 );
     }