aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-12-17 22:36:44 -0800
committerChris Robinson <[email protected]>2023-12-17 22:36:44 -0800
commit708a90ef8ef7ee00991556298073c50dfa6e72a1 (patch)
tree5d72e46977dc241febfcf6ad4ab2ffbe2fadf2c3 /examples
parentbc83c874ff15b29fdab9b6c0bf40b268345b3026 (diff)
Fix some implicit conversions
Diffstat (limited to 'examples')
-rw-r--r--examples/alffplay.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/alffplay.cpp b/examples/alffplay.cpp
index 5a10bf05..347d0b14 100644
--- a/examples/alffplay.cpp
+++ b/examples/alffplay.cpp
@@ -749,7 +749,7 @@ bool AudioState::readAudio(uint8_t *samples, unsigned int length, int &sample_sk
sample_dup(samples, mSamples, rem, mFrameSize);
}
- mSamplesPos += rem;
+ mSamplesPos += static_cast<int>(rem);
mCurrentPts += nanoseconds{seconds{rem}} / mCodecCtx->sample_rate;
samples += rem*mFrameSize;
audio_size += rem;