Skip to content
Snippets Groups Projects
Commit 424eb742 authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Only checking for a mismatch when RESYNTH is defined

parent aa6fec66
No related branches found
No related tags found
No related merge requests found
......@@ -174,7 +174,7 @@ int main(int argc, char *argv[])
for (i=0;i<frame_size*channels;i++)
out[i] = in[i];
#endif
#if !(defined (FIXED_POINT) && !defined(CUSTOM_MODES))
#if !(defined (FIXED_POINT) && !defined(CUSTOM_MODES)) && defined(RESYNTH)
for (i=0;i<frame_size*channels;i++)
{
rmsd += (in[i]-out[i])*1.0*(in[i]-out[i]);
......@@ -194,7 +194,7 @@ int main(int argc, char *argv[])
celt_mode_destroy(mode);
free(in);
free(out);
#if !(defined (FIXED_POINT) && !defined(CUSTOM_MODES))
#if !(defined (FIXED_POINT) && !defined(CUSTOM_MODES)) && defined(RESYNTH)
if (rmsd > 0)
{
rmsd = sqrt(rmsd/(1.0*frame_size*channels*count));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment