avcodec/fft-test: fix memory alloc checks

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-07-24 00:46:15 +02:00
parent 074bb7515e
commit 629e5e28f7
1 changed files with 2 additions and 2 deletions

View File

@ -316,7 +316,7 @@ int main(int argc, char **argv)
else
av_log(NULL, AV_LOG_INFO,"FFT");
ff_fft_init(&s, fft_nbits, do_inverse);
if (err = fft_ref_init(fft_nbits, do_inverse) < 0)
if ((err = fft_ref_init(fft_nbits, do_inverse)) < 0)
goto cleanup;
break;
#if FFT_FLOAT
@ -327,7 +327,7 @@ int main(int argc, char **argv)
else
av_log(NULL, AV_LOG_INFO,"DFT_R2C");
ff_rdft_init(&r, fft_nbits, do_inverse ? IDFT_C2R : DFT_R2C);
if (err = fft_ref_init(fft_nbits, do_inverse) < 0)
if ((err = fft_ref_init(fft_nbits, do_inverse)) < 0)
goto cleanup;
break;
# endif /* CONFIG_RDFT */