diff options
author | Yoann Lopes <yoann.lopes@digia.com> | 2014-09-03 14:45:50 +0200 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@digia.com> | 2014-09-09 13:46:19 +0200 |
commit | 18d6560db15d8f65b221717b9a769fd0f00cec35 (patch) | |
tree | ea6d6d6f5c3dc98c92e5474d90921e9689cfb532 /src/plugins/alsa/qalsaaudiooutput.cpp | |
parent | 006cdeee92b0ecc292cfba7871fd1dafaff4c05d (diff) | |
download | qtmultimedia-18d6560db15d8f65b221717b9a769fd0f00cec35.tar.gz |
Fix integer overflow in several audio plugins.
Task-number: QTBUG-40804
Change-Id: If006cb7db319bb6fda4ce7eb4f907e897b5d9efa
Reviewed-by: Christian Stromme <christian.stromme@digia.com>
Diffstat (limited to 'src/plugins/alsa/qalsaaudiooutput.cpp')
-rw-r--r-- | src/plugins/alsa/qalsaaudiooutput.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/alsa/qalsaaudiooutput.cpp b/src/plugins/alsa/qalsaaudiooutput.cpp index c8d709cf9..da25a885d 100644 --- a/src/plugins/alsa/qalsaaudiooutput.cpp +++ b/src/plugins/alsa/qalsaaudiooutput.cpp @@ -782,7 +782,7 @@ qint64 QAlsaAudioOutput::elapsedUSecs() const if (deviceState == QAudio::StoppedState) return 0; - return clockStamp.elapsed()*1000; + return clockStamp.elapsed() * qint64(1000); } void QAlsaAudioOutput::reset() |