mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 17:49:09 +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);
|
EoF := sz < sizeof(DataChunk);
|
||||||
if not EoF then begin
|
if not EoF then begin
|
||||||
DataChunk.Size := LEtoN(DataChunk.Size);
|
DataChunk.Size := LEtoN(DataChunk.Size);
|
||||||
if DataChunk.Id <> AUDIO_CHUNK_ID_data then
|
if DataChunk.Id <> AUDIO_CHUNK_ID_data then begin
|
||||||
ChunkPos := DataChunk.Size
|
ChunkPos := DataChunk.Size;
|
||||||
|
fstream.Seek(DataChunk.Size, soCurrent);
|
||||||
|
end
|
||||||
else
|
else
|
||||||
ChunkPos := 0;
|
ChunkPos := 0;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user