mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 20:19:55 +00:00
fft-test: Pass correct struct members to (i)dct functions
This fixes a number of incompatible pointer type warnings.
This commit is contained in:
parent
6133d65861
commit
d0de7330b9
@ -420,11 +420,11 @@ int main(int argc, char **argv)
|
||||
#if CONFIG_DCT
|
||||
case TRANSFORM_DCT:
|
||||
memcpy(tab, tab1, fft_size * sizeof(FFTComplex));
|
||||
d.dct_calc(&d, tab);
|
||||
d.dct_calc(&d, &tab->re);
|
||||
if (do_inverse)
|
||||
idct_ref(tab_ref, tab1, fft_nbits);
|
||||
idct_ref(&tab_ref->re, &tab1->re, fft_nbits);
|
||||
else
|
||||
dct_ref(tab_ref, 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 */
|
||||
|
Loading…
Reference in New Issue
Block a user