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

Commit 3662ca10 authored by Wei Jia's avatar Wei Jia Committed by Android (Google) Code Review
Browse files

Merge "StagefrightMetadataRetriever: handle error returned from...

Merge "StagefrightMetadataRetriever: handle error returned from convertMetaDataToMessage()." into mnc-dev
parents 6a3a55ef ed78e2fd
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -146,7 +146,10 @@ static VideoFrame *extractVideoFrame(
    sp<MetaData> format = source->getFormat();

    sp<AMessage> videoFormat;
    convertMetaDataToMessage(trackMeta, &videoFormat);
    if (convertMetaDataToMessage(trackMeta, &videoFormat) != OK) {
        ALOGW("Failed to convert meta data to message");
        return NULL;
    }

    // TODO: Use Flexible color instead
    videoFormat->setInt32("color-format", OMX_COLOR_FormatYUV420Planar);