[SCM] libav/experimental: fft-test: Pass correct struct members to (i)dct functions
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Aug 10 16:04:00 UTC 2014
The following commit has been merged in the experimental branch:
commit d0de7330b973b354e2ceb0b99fd545b868b0a9c4
Author: Diego Biurrun <diego at biurrun.de>
Date: Wed Jul 23 07:33:28 2014 -0700
fft-test: Pass correct struct members to (i)dct functions
This fixes a number of incompatible pointer type warnings.
diff --git a/libavcodec/fft-test.c b/libavcodec/fft-test.c
index 1d3d32c..2adde93 100644
--- 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 */
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list