OSDN Git Service
(root)
/
android-x86
/
frameworks-av.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fe79a2
)
WAVExtractor: fix always-false mNumChannels range check
author
Robert Shih
<robertshih@google.com>
Thu, 20 Aug 2015 00:37:19 +0000
(17:37 -0700)
committer
Robert Shih
<robertshih@google.com>
Thu, 20 Aug 2015 18:17:06 +0000
(18:17 +0000)
Bug:
23314110
Change-Id: Ic641dd15e942fdd7268f057f9643dce21a81ae3b
media/libstagefright/WAVExtractor.cpp
patch
|
blob
|
history
diff --git
a/media/libstagefright/WAVExtractor.cpp
b/media/libstagefright/WAVExtractor.cpp
index
335ac84
..
ac38a18
100644
(file)
--- a/
media/libstagefright/WAVExtractor.cpp
+++ b/
media/libstagefright/WAVExtractor.cpp
@@
-199,7
+199,7
@@
status_t WAVExtractor::init() {
mNumChannels);
}
} else {
- if (mNumChannels < 1
&&
mNumChannels > 8) {
+ if (mNumChannels < 1
||
mNumChannels > 8) {
return ERROR_UNSUPPORTED;
}
}