DO NOT MERGE Verify OMX buffer sizes prior to access

Bug: 27207275
Change-Id: I4412825d1ee233d993af0a67708bea54304ff62d

OMX_ERRORTYPE SoftFlacEncoder::initCheck() const {
 if (mSignalledError) {
 if (mFlacStreamEncoder == NULL) {
            ALOGE("initCheck() failed due to NULL encoder");
 } else if (mInputBufferPcm32 == NULL) {
            ALOGE("initCheck() failed due to error allocating internal input buffer");
 }
 return OMX_ErrorUndefined;
 } else {
 return SimpleSoftOMXComponent::initCheck();
 }
}

OMX_ERRORTYPE SoftFlacEncoder::initCheck() const {
 if (mSignalledError) {
 if (mFlacStreamEncoder == NULL) {
            ALOGE("initCheck() failed due to NULL encoder");
 } else if (mInputBufferPcm32 == NULL) {
            ALOGE("initCheck() failed due to error allocating internal input buffer");
 }
 return OMX_ErrorUndefined;
 } else {
 return SimpleSoftOMXComponent::initCheck();
 }
}
