diff --git a/proprietary/wvm/WVMExtractorImpl.cpp b/proprietary/wvm/WVMExtractorImpl.cpp index 0bcef897..27d65bbe 100644 --- a/proprietary/wvm/WVMExtractorImpl.cpp +++ b/proprietary/wvm/WVMExtractorImpl.cpp @@ -264,6 +264,11 @@ status_t WVMExtractorImpl::readMetaData() if (result != WV_Status_OK) return ERROR_MALFORMED; + if (numChannels == 0) { + ALOGD("numChannels is 0!"); + return ERROR_MALFORMED; + } + std::string durationString = WV_Info_GetDuration(mSession, "sec"); if (durationString == "") { // We won't have a duration for live streams, and Stagefright doesn't seem to