Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions indra/llaudio/llvorbisencode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ S32 check_for_invalid_wav_formats(const std::string& in_fname, std::string& erro
U32 bytes_per_sec = 0;
bool uncompressed_pcm = false;

char wav_header[44]; /*Flawfinder: ignore*/
unsigned char wav_header[44]; /*Flawfinder: ignore*/

error_msg.clear();

Expand All @@ -58,7 +58,7 @@ S32 check_for_invalid_wav_formats(const std::string& in_fname, std::string& erro
return(LLVORBISENC_SOURCE_OPEN_ERR);
}

infile.read(wav_header, 44);
infile.read((char*)wav_header, 44);
infile.seekg(0, std::ios::end);
physical_file_size = narrow(infile.tellg());
infile.seekg(0, std::ios::beg);
Expand All @@ -82,7 +82,7 @@ S32 check_for_invalid_wav_formats(const std::string& in_fname, std::string& erro
while ((file_pos + 8)< physical_file_size)
{
infile.seekg(file_pos, std::ios::beg);
infile.read(wav_header, 44);
infile.read((char*)wav_header, 44);

chunk_length = ((U32) wav_header[7] << 24)
+ ((U32) wav_header[6] << 16)
Expand Down
Loading