Commit 582cce3a authored by stoutjesdijk's avatar stoutjesdijk 🎧
Browse files

logic sanitization looking for wave file write bug

parent 382987e0
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -98,7 +98,11 @@ ivas_error AudioFileWriter_open(

    int8_t retCode;

#ifdef FIX_I109_ORIENTATION_TRACKING
    if ( (fileNameLen > wavSuffixLen) && ( strncmp( fileName + fileNameLen - wavSuffixLen, wavSuffix, wavSuffixLen ) == 0 ) )
#else
    if ( fileNameLen > wavSuffixLen && strncmp( fileName + fileNameLen - wavSuffixLen, wavSuffix, wavSuffixLen ) == 0 )
#endif
    {
        retCode = AudioFileWriter_open_wav( self, fileName, sampleRate, numChannels );
    }