Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d89e6ce authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 7766737 from f2a402c3 to sc-v2-release

Change-Id: I0012caafbca58105e306e56ae74608b65be661ca
parents 78763d3e f2a402c3
Loading
Loading
Loading
Loading
+12 −3
Original line number Diff line number Diff line
@@ -883,9 +883,18 @@ status_t MediaImageDecoder::onOutputReceived(
    }

    int32_t width, height, stride;
    CHECK(outputFormat->findInt32("width", &width));
    CHECK(outputFormat->findInt32("height", &height));
    CHECK(outputFormat->findInt32("stride", &stride));
    if (outputFormat->findInt32("width", &width) == false) {
        ALOGE("MediaImageDecoder::onOutputReceived:width is missing in outputFormat");
        return ERROR_MALFORMED;
    }
    if (outputFormat->findInt32("height", &height) == false) {
        ALOGE("MediaImageDecoder::onOutputReceived:height is missing in outputFormat");
        return ERROR_MALFORMED;
    }
    if (outputFormat->findInt32("stride", &stride) == false) {
        ALOGE("MediaImageDecoder::onOutputReceived:stride is missing in outputFormat");
        return ERROR_MALFORMED;
    }

    if (mFrame == NULL) {
        sp<IMemory> frameMem = allocVideoFrame(