We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b62c902 commit a2e9eabCopy full SHA for a2e9eab
libaudiofile/WAVE.cpp
@@ -326,13 +326,15 @@ status WAVEFile::parseFormat(const Tag &id, uint32_t size)
326
{
327
_af_error(AF_BAD_NOT_IMPLEMENTED,
328
"IMA ADPCM compression supports only 4 bits per sample");
329
+ return AF_FAIL;
330
}
331
332
int bytesPerBlock = (samplesPerBlock + 14) / 8 * 4 * channelCount;
333
if (bytesPerBlock > blockAlign || (samplesPerBlock % 8) != 1)
334
335
_af_error(AF_BAD_CODEC_CONFIG,
336
"Invalid samples per block for IMA ADPCM compression");
337
338
339
340
track->f.sampleWidth = 16;
0 commit comments