We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f52e98d commit 0bb0e32Copy full SHA for 0bb0e32
src/AudioCodecs/CodecWAV.h
@@ -377,16 +377,18 @@ class WAVDecoder : public AudioDecoder {
377
);
378
}
379
380
-
+ /// Decodes the header data: Returns the start pos of the data
381
int decodeHeader(uint8_t *in_ptr, size_t in_size) {
382
int result = in_size;
383
// we expect at least the full header
384
int written = header.write(in_ptr, in_size);
385
if (!header.isDataComplete()) {
386
- return written;
+ return 0;
387
388
// parse header
389
- header.parse();
+ if (!header.parse()){
390
391
+ }
392
393
isFirst = false;
394
isValid = header.audioInfo().is_valid;
0 commit comments