Commit b4d811df authored by Martin Storsjö's avatar Martin Storsjö Committed by Henrik Gramner
Browse files

checkasm: Use the right variable in a loop condition

Prior to this, this loop hasn't run at all. The condition has been
the same since it was introduced in 5b0cb86f.

This issue was pointed out by a clang warning.
parent a3d24462
......@@ -2260,7 +2260,7 @@ static int check_quant( int cpu_ref, int cpu_new )
int max = X264_MIN( i, PIXEL_MAX*16 ); \
for( int j = 0; j < size; j++ ) \
dct1[j] = rand()%(max*2+1) - max; \
for( int j = 0; i <= size; j += 4 ) \
for( int j = 0; j <= size; j += 4 ) \
qf_c.quant_2x2_dc( &dct1[j], h->quant4_mf[CQM_4IC][qpdc][0]>>1, h->quant4_bias[CQM_4IC][qpdc][0]>>1 ); \
memcpy( dct2, dct1, size*sizeof(dctcoef) ); \
res_c = call_c1( qf_c.optname, dct1, dmf ); \
......
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