Commit 6afb67c6 authored by Anton Mitrofanov's avatar Anton Mitrofanov Committed by Henrik Gramner
Browse files

Fix theoretically incorrect cost_mv_fpel free

parent 57dd6274
...@@ -208,9 +208,11 @@ void x264_analyse_free_costs( x264_t *h ) ...@@ -208,9 +208,11 @@ void x264_analyse_free_costs( x264_t *h )
{ {
if( h->cost_mv[i] ) if( h->cost_mv[i] )
x264_free( h->cost_mv[i] - 2*4*mv_range ); x264_free( h->cost_mv[i] - 2*4*mv_range );
if( h->cost_mv_fpel[i][0] ) for( int j = 0; j < 4; j++ )
for( int j = 0; j < 4; j++ ) {
if( h->cost_mv_fpel[i][j] )
x264_free( h->cost_mv_fpel[i][j] - 2*mv_range ); x264_free( h->cost_mv_fpel[i][j] - 2*mv_range );
}
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment