projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6133d65
)
fft-test: Pass correct struct members to (i)dct functions
author
Diego Biurrun
<diego@biurrun.de>
Wed, 23 Jul 2014 14:33:28 +0000
(07:33 -0700)
committer
Diego Biurrun
<diego@biurrun.de>
Wed, 23 Jul 2014 20:05:25 +0000
(13:05 -0700)
This fixes a number of incompatible pointer type warnings.
libavcodec/fft-test.c
patch
|
blob
|
history
diff --git
a/libavcodec/fft-test.c
b/libavcodec/fft-test.c
index
1d3d32c
..
2adde93
100644
(file)
--- a/
libavcodec/fft-test.c
+++ b/
libavcodec/fft-test.c
@@
-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 */