You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thx for @privatezero for finding this error. He has several ProTools files using 24 bit mono (so odd-length padded data chunks are expected). There is a padding byte present; however it is not a null byte.
When opened, BWF MetaEdit gives a padding error which is correct.
When I select, accept with padding error, then the next chunk (using the example wav below) is "QLIS" (rather than "LIST") and the size is "0x1a54" rather than "0x1a", so the file reports as truncated.
When the chunk size is odd and the padding byte is not null, I think we need a test of the subsequent chunk structure to see if the byte in the padding byte position is the first byte of the subsequent chunk id or not. If this case the chunks after the padding byte are valid however reading at the padding byte position creates an impression that the file is invalid. I haven't examined the audio in this case to know if the fix here is to increase the size of the data chunk by one byte (which would make the padding byte as an audio sample) or to overwrite the present padding byte (here 0x51) with a null byte.
The text was updated successfully, but these errors were encountered:
dericed
changed the title
false report of file truncation
false report of file truncation, when padding byte is not null but not 1st byte of a chunk id
Jun 26, 2020
Thx for @privatezero for finding this error. He has several ProTools files using 24 bit mono (so odd-length padded data chunks are expected). There is a padding byte present; however it is not a null byte.
When opened, BWF MetaEdit gives a padding error which is correct.
When I select, accept with padding error, then the next chunk (using the example wav below) is "QLIS" (rather than "LIST") and the size is "0x1a54" rather than "0x1a", so the file reports as truncated.
When the chunk size is odd and the padding byte is not null, I think we need a test of the subsequent chunk structure to see if the byte in the padding byte position is the first byte of the subsequent chunk id or not. If this case the chunks after the padding byte are valid however reading at the padding byte position creates an impression that the file is invalid. I haven't examined the audio in this case to know if the fix here is to increase the size of the data chunk by one byte (which would make the padding byte as an audio sample) or to overwrite the present padding byte (here 0x51) with a null byte.
The text was updated successfully, but these errors were encountered: