IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33955


Ignore:
Timestamp:
May 29, 2012, 5:19:26 PM (14 years ago)
Author:
eugene
Message:

fix alloc error (rare or never hit)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/fft/psImageFFT.c

    r29592 r33955  
    7777        input = psMemIncrRefCounter(in->p_rawDataBuffer);
    7878    } else {
    79         // Need to copy the data
    80         input = psAlloc(numCols * numRows);
     79        // Need to copy the data
     80        input = psAlloc(numCols * numRows * PSELEMTYPE_SIZEOF(PS_TYPE_F32));
    8181        for (int y = 0; y < numRows; y++) {
    8282            memcpy(&input[y * numRows], in->data.F32[y], numCols);
Note: See TracChangeset for help on using the changeset viewer.