[x264-devel] Fix crash with no-scenecut + mbtree

Jason Garrett-Glaser git at videolan.org
Thu Nov 8 00:55:02 CET 2012


x264 | branch: master | Jason Garrett-Glaser <jason at x264.com> | Tue Nov  6 12:03:20 2012 -0800| [6889f2cee49314aa380d4803991d645659efc01f] | committer: Jason Garrett-Glaser

Fix crash with no-scenecut + mbtree

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=6889f2cee49314aa380d4803991d645659efc01f
---

 encoder/slicetype.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/encoder/slicetype.c b/encoder/slicetype.c
index 352de04..f4a91a8 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 );
     }



More information about the x264-devel mailing list