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,10 +208,12 @@ void x264_analyse_free_costs( x264_t *h )
{
if( h->cost_mv[i] )
x264_free( h->cost_mv[i] - 2*4*mv_range );
if( h->cost_mv_fpel[i][0] )
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 );
}
}
}
void x264_analyse_weight_frame( x264_t *h, int end )
......
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