Commit ab0f78ea authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'd0de7330'

* commit 'd0de7330':
  fft-test: Pass correct struct members to (i)dct functions

Conflicts:
	libavcodec/fft-test.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 02ea384a d0de7330
......@@ -426,11 +426,11 @@ int main(int argc, char **argv)
#if CONFIG_DCT
case TRANSFORM_DCT:
memcpy(tab, tab1, fft_size * sizeof(FFTComplex));
d.dct_calc(&d, (FFTSample *)tab);
d.dct_calc(&d, &tab->re);
if (do_inverse)
idct_ref((FFTSample*)tab_ref, (FFTSample *)tab1, fft_nbits);
idct_ref(&tab_ref->re, &tab1->re, fft_nbits);
else
dct_ref((FFTSample*)tab_ref, (FFTSample *)tab1, fft_nbits);
dct_ref(&tab_ref->re, &tab1->re, fft_nbits);
err = check_diff((float *) tab_ref, (float *) tab, fft_size, 1.0);
break;
#endif /* CONFIG_DCT */
......
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