diff options
author | Paul Adenot <[email protected]> | 2023-09-15 16:14:22 +0200 |
---|---|---|
committer | Paul Adenot <[email protected]> | 2023-09-15 16:14:22 +0200 |
commit | f9c118ddc050d15ffb3ac2babff06a833d0ac740 (patch) | |
tree | e02022593786d1dd6b061560aff5c30ff7221ddf | |
parent | 3f86a06fcee0ee738db8d0747bf291df8d12ef07 (diff) | |
download | cubeb-f9c118ddc050d15ffb3ac2babff06a833d0ac740.tar.gz cubeb-f9c118ddc050d15ffb3ac2babff06a833d0ac740.zip |
Use uint64_t for the samplerate in opensl_stream_get_position to avoid overflow
-rw-r--r-- | src/cubeb_opensl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cubeb_opensl.cpp b/src/cubeb_opensl.cpp index 6a0f43a..542d452 100644 --- a/src/cubeb_opensl.cpp +++ b/src/cubeb_opensl.cpp @@ -1852,7 +1852,7 @@ opensl_stream_get_position(cubeb_stream * stm, uint64_t * position) stm->lastPosition = msec; } - uint32_t samplerate = stm->user_output_rate; + uint64_t samplerate = stm->user_output_rate; uint32_t output_latency = stm->output_latency_ms; pthread_mutex_lock(&stm->mutex); |