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

Commit 91d6da62 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

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

Change-Id: I38170838209828ac5a9589a765174ac17d3ba7cb
parents b887d139 9e1b2746
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 */