-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
audio: check for divide by zero possibilities
When output stream is not available to audioflinger due to any reason, sampleRate and frameCount have zero values when trying to create new Audiotrack. This might result in divide by 0 situation. Change-Id: If7fbcb6eb4cfcdba6d6bb3b4f758e46e4a57e37b (cherry picked from commit d1576c1648a78354535fc9cd7130412f300864e5) (cherry picked from commit 15b951bfcb2180f728669ab23ef0d6791fd790c2) (cherry picked from commit c980dbea39f984a3c28e2694174e87b311e77308)
- Loading branch information
Pavan Chikkala
authored and
Linux Build Service Account
committed
Oct 31, 2013
1 parent
3f5fc47
commit 79bb230
Showing
2 changed files
with
41 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters