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

Commit ed78e2fd authored by Wei Jia's avatar Wei Jia
Browse files

StagefrightMetadataRetriever: handle error returned from convertMetaDataToMessage().

Bug: 23680780
Change-Id: I09dbbf95b2c874b9760938646e48a7ed543f1577
parent dffe5cdb
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);