@@ 571-575 (lines=5) @@ | ||
568 | // LiteWave appears to incorrectly *not* pad actual output file |
|
569 | // to nearest WORD boundary so may appear to be short by one |
|
570 | // byte, in which case - skip warning |
|
571 | } else { |
|
572 | // Short by more than one byte, throw warning |
|
573 | $info['warning'][] = 'Probably truncated file - expecting '.$thisfile_riff[$RIFFsubtype]['data'][0]['size'].' bytes of data, only found '.($info['filesize'] - $info['avdataoffset']).' (short by '.($thisfile_riff[$RIFFsubtype]['data'][0]['size'] - ($info['filesize'] - $info['avdataoffset'])).' bytes)'; |
|
574 | $info['avdataend'] = $info['filesize']; |
|
575 | } |
|
576 | break; |
|
577 | ||
578 | default: |
|
@@ 584-588 (lines=5) @@ | ||
581 | // Output less severe warning |
|
582 | $info['warning'][] = 'File should probably be padded to nearest WORD boundary, but it is not (expecting '.$thisfile_riff[$RIFFsubtype]['data'][0]['size'].' bytes of data, only found '.($info['filesize'] - $info['avdataoffset']).' therefore short by '.($thisfile_riff[$RIFFsubtype]['data'][0]['size'] - ($info['filesize'] - $info['avdataoffset'])).' bytes)'; |
|
583 | $info['avdataend'] = $info['filesize']; |
|
584 | } else { |
|
585 | // Short by more than one byte, throw warning |
|
586 | $info['warning'][] = 'Probably truncated file - expecting '.$thisfile_riff[$RIFFsubtype]['data'][0]['size'].' bytes of data, only found '.($info['filesize'] - $info['avdataoffset']).' (short by '.($thisfile_riff[$RIFFsubtype]['data'][0]['size'] - ($info['filesize'] - $info['avdataoffset'])).' bytes)'; |
|
587 | $info['avdataend'] = $info['filesize']; |
|
588 | } |
|
589 | break; |
|
590 | } |
|
591 | } |