am 79e250e9: If number of audio channels returned is 0, report an error
* commit '79e250e999b7002dc39fa8ee31630fabde6132a8': If number of audio channels returned is 0, report an error
This commit is contained in:
@@ -264,6 +264,11 @@ status_t WVMExtractorImpl::readMetaData()
|
|||||||
if (result != WV_Status_OK)
|
if (result != WV_Status_OK)
|
||||||
return ERROR_MALFORMED;
|
return ERROR_MALFORMED;
|
||||||
|
|
||||||
|
if (numChannels == 0) {
|
||||||
|
ALOGD("numChannels is 0!");
|
||||||
|
return ERROR_MALFORMED;
|
||||||
|
}
|
||||||
|
|
||||||
std::string durationString = WV_Info_GetDuration(mSession, "sec");
|
std::string durationString = WV_Info_GetDuration(mSession, "sec");
|
||||||
if (durationString == "") {
|
if (durationString == "") {
|
||||||
// We won't have a duration for live streams, and Stagefright doesn't seem to
|
// We won't have a duration for live streams, and Stagefright doesn't seem to
|
||||||
|
|||||||
Reference in New Issue
Block a user