Bug 1363669 - add 'mp4v' mimetype for rust parser. r=kinetik draft
authorAlfredo Yang <ayang@mozilla.com>
Thu, 18 May 2017 15:48:26 +0800
changeset 584327 d3561658d881ce80f0a1360a11e709d50f96545d
parent 584216 f81bcc23d37d7bec48f08b19a9327e93c54d37b5
child 584328 d7e010f17c5c4e4894425ec0011859ccf46381a6
push id60692
push userayang@mozilla.com
push dateThu, 25 May 2017 08:49:50 +0000
reviewerskinetik
bugs1363669
milestone55.0a1
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;