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

Commit f1cf5a6d authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge changes from topic "bug_204349132" am: dbb28516 am: 9e1b2746 am:...

Merge changes from topic "bug_204349132" am: dbb28516 am: 9e1b2746 am: 91d6da62 am: e411dad6

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/1877476

Change-Id: I630f0e2d3f78c1fb024fe8dfd5222a777c6315d5
parents b8a13605 e411dad6
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -231,6 +231,15 @@ sp<IMemory> StagefrightMetadataRetriever::getImageInternal(
        format = NULL;
    }

    // If decoding thumbnail check decoder supports thumbnail dimensions instead
    int32_t thumbHeight, thumbWidth;
    if (thumbnail && format != NULL
            && trackMeta->findInt32(kKeyThumbnailHeight, &thumbHeight)
            && trackMeta->findInt32(kKeyThumbnailWidth, &thumbWidth)) {
        format->setInt32("height", thumbHeight);
        format->setInt32("width", thumbWidth);
    }

    MediaCodecList::findMatchingCodecs(
            mime,
            false, /* encoder */