aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/base/UMusic.pas2
-rw-r--r--src/media/UAudioDecoder_FFmpeg.pas2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/base/UMusic.pas b/src/base/UMusic.pas
index 41d6e80c..ff0fad04 100644
--- a/src/base/UMusic.pas
+++ b/src/base/UMusic.pas
@@ -1006,7 +1006,7 @@ begin
Sample[0] := Value;
Sample[1] := Value;
// increase to next frame
- Inc(Buffer, FrameSize);
+ Inc(PByte(Buffer), FrameSize);
end;
end;
diff --git a/src/media/UAudioDecoder_FFmpeg.pas b/src/media/UAudioDecoder_FFmpeg.pas
index c64d79c2..b44c7b11 100644
--- a/src/media/UAudioDecoder_FFmpeg.pas
+++ b/src/media/UAudioDecoder_FFmpeg.pas
@@ -934,7 +934,7 @@ begin
Break;
end;
- Inc(fAudioPaketData, PaketDecodedSize);
+ Inc(PByte(fAudioPaketData), PaketDecodedSize);
Dec(fAudioPaketSize, PaketDecodedSize);
// check if avcodec_decode_audio returned data, otherwise fetch more frames