mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 02:28:14 +02:00
* fixed bug in wav reader, that fails to skip non-data chunks, because it
forgets to seek ahead in the stream git-svn-id: trunk@47465 -
This commit is contained in:
parent
e3d0b3c7c6
commit
4411b09631
@ -121,8 +121,10 @@ begin
|
||||
EoF := sz < sizeof(DataChunk);
|
||||
if not EoF then begin
|
||||
DataChunk.Size := LEtoN(DataChunk.Size);
|
||||
if DataChunk.Id <> AUDIO_CHUNK_ID_data then
|
||||
ChunkPos := DataChunk.Size
|
||||
if DataChunk.Id <> AUDIO_CHUNK_ID_data then begin
|
||||
ChunkPos := DataChunk.Size;
|
||||
fstream.Seek(DataChunk.Size, soCurrent);
|
||||
end
|
||||
else
|
||||
ChunkPos := 0;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user