avif: Use grid size to query for codec
When processing AVIF images with grid, use the size of each grid
to query for the MediaCodec instance rather than using the size of
the whole image.
CtsMediaMiscTestCases (which contains the AVIF tests continue to
pass).
Test: atest CtsMediaMiscTestCases:MediaMetadataRetrieverTest CtsMediaMiscTestCases:ThumbnailUtilsTest
Change-Id: Id783461066086c8ff9ea978d48c8525051e72e65
diff --git a/media/libmediaplayerservice/StagefrightMetadataRetriever.cpp b/media/libmediaplayerservice/StagefrightMetadataRetriever.cpp
index b3f7f25..db979d7 100644
--- a/media/libmediaplayerservice/StagefrightMetadataRetriever.cpp
+++ b/media/libmediaplayerservice/StagefrightMetadataRetriever.cpp
@@ -211,6 +211,7 @@
mime = MEDIA_MIMETYPE_VIDEO_AV1;
trackMeta = new MetaData(*trackMeta);
trackMeta->setCString(kKeyMIMEType, mime);
+ isHeif = true;
}
sp<AMessage> format = new AMessage;