summaryrefslogtreecommitdiff
path: root/media
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-04-27 10:18:49 +0000
committerMoonchild <moonchild@palemoon.org>2022-04-27 10:27:49 +0000
commit93b170e6292d58d251299b5d3d7c51c5c0afd65b (patch)
tree032d7801bb067418ca77249bcdd3b82ff5b0c885 /media
parentb9b1abc871367f2b3456c4b5d39933015d08a689 (diff)
downloaduxp-93b170e6292d58d251299b5d3d7c51c5c0afd65b.tar.gz
Issue #1820 - Part 2: Add VP9-in-MP4 support to the decoder
This also adds support in StageFright for VP9.0 FourCCs and consolidates individual string checks to helpers for WebM
Diffstat (limited to 'media')
-rw-r--r--media/libstagefright/frameworks/av/media/libstagefright/MPEG4Extractor.cpp3
-rw-r--r--media/libstagefright/frameworks/av/media/libstagefright/MediaDefs.cpp2
2 files changed, 4 insertions, 1 deletions
diff --git a/media/libstagefright/frameworks/av/media/libstagefright/MPEG4Extractor.cpp b/media/libstagefright/frameworks/av/media/libstagefright/MPEG4Extractor.cpp
index 786e804878..bbc067ab19 100644
--- a/media/libstagefright/frameworks/av/media/libstagefright/MPEG4Extractor.cpp
+++ b/media/libstagefright/frameworks/av/media/libstagefright/MPEG4Extractor.cpp
@@ -269,6 +269,9 @@ static const char *FourCC2MIME(uint32_t fourcc) {
case FOURCC('V', 'P', '6', 'F'):
return MEDIA_MIMETYPE_VIDEO_VP6;
+ case FOURCC('v', 'p', '0', '9'):
+ return MEDIA_MIMETYPE_VIDEO_VP9;
+
case FOURCC('a', 'v', '0', '1'):
case FOURCC('.', 'a', 'v', '1'):
return MEDIA_MIMETYPE_VIDEO_AV1;
diff --git a/media/libstagefright/frameworks/av/media/libstagefright/MediaDefs.cpp b/media/libstagefright/frameworks/av/media/libstagefright/MediaDefs.cpp
index a7c6e75fcc..bc81dceb38 100644
--- a/media/libstagefright/frameworks/av/media/libstagefright/MediaDefs.cpp
+++ b/media/libstagefright/frameworks/av/media/libstagefright/MediaDefs.cpp
@@ -22,7 +22,7 @@ const char *MEDIA_MIMETYPE_IMAGE_JPEG = "image/jpeg";
const char *MEDIA_MIMETYPE_VIDEO_VP6 = "video/x-vnd.on2.vp6";
const char *MEDIA_MIMETYPE_VIDEO_VP8 = "video/x-vnd.on2.vp8";
-const char *MEDIA_MIMETYPE_VIDEO_VP9 = "video/x-vnd.on2.vp9";
+const char *MEDIA_MIMETYPE_VIDEO_VP9 = "video/vp9";
const char *MEDIA_MIMETYPE_VIDEO_AV1 = "video/av1";
const char *MEDIA_MIMETYPE_VIDEO_AVC = "video/avc";
const char *MEDIA_MIMETYPE_VIDEO_MPEG4 = "video/mp4v-es";