Bug 1363669 - add 'mp4v' mimetype for rust parser. r=kinetik
authorAlfredo Yang <ayang@mozilla.com>
Thu, 18 May 2017 15:48:26 +0800
changeset 409201 fa4b5a89201b3d27a62580467eff8c89f837d6ce
parent 409200 8be1ec05e745ff5fe17f34cef8696f9f74b47bba
child 409202 17a953825a4e915c425ced37e57812f9d8cd9f10
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskinetik
bugs1363669
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1363669 - add 'mp4v' mimetype for rust parser. r=kinetik MozReview-Commit-ID: B6b3H3xfaav
media/libstagefright/binding/DecoderData.cpp
--- a/media/libstagefright/binding/DecoderData.cpp
+++ b/media/libstagefright/binding/DecoderData.cpp
@@ -243,16 +243,18 @@ void
 MP4VideoInfo::Update(const mp4parse_track_info* track,
                      const mp4parse_track_video_info* video)
 {
   UpdateTrackProtectedInfo(*this, video->protected_data);
   if (track->codec == mp4parse_codec_AVC) {
     mMimeType = MEDIA_MIMETYPE_VIDEO_AVC;
   } else if (track->codec == mp4parse_codec_VP9) {
     mMimeType = NS_LITERAL_CSTRING("video/vp9");
+  } else if (track->codec == mp4parse_codec_MP4V) {
+    mMimeType = MEDIA_MIMETYPE_VIDEO_MPEG4;
   }
   mTrackId = track->track_id;
   mDuration = TimeUnit::FromMicroseconds(track->duration);
   mMediaTime = TimeUnit::FromMicroseconds(track->media_time);
   mDisplay.width = video->display_width;
   mDisplay.height = video->display_height;
   mImage.width = video->image_width;
   mImage.height = video->image_height;