summaryrefslogtreecommitdiff
path: root/src/plugins/alsa/qalsaaudiooutput.cpp
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@digia.com>2014-09-03 14:45:50 +0200
committerYoann Lopes <yoann.lopes@digia.com>2014-09-09 13:46:19 +0200
commit18d6560db15d8f65b221717b9a769fd0f00cec35 (patch)
treeea6d6d6f5c3dc98c92e5474d90921e9689cfb532 /src/plugins/alsa/qalsaaudiooutput.cpp
parent006cdeee92b0ecc292cfba7871fd1dafaff4c05d (diff)
downloadqtmultimedia-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.cpp2
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()