Bug 1379047 - treat JPEG as unknown codec since jpeg video track is not supported. r=kinetik
authorAlfredo Yang <ayang@mozilla.com>
Tue, 11 Jul 2017 15:19:44 +0800
changeset 369300 8e1fe8f92ade4cd5aed82e193bbc0e385b8b7d62
parent 369299 486da25b9ae013cfb8a436ed7e174ebb48b7948b
child 369301 03507304881cb1d4d734bf967685ef912381bcba
push id46636
push userayang@mozilla.com
push dateTue, 18 Jul 2017 02:29:50 +0000
treeherderautoland@8e1fe8f92ade [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskinetik
bugs1379047
milestone56.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 1379047 - treat JPEG as unknown codec since jpeg video track is not supported. r=kinetik MozReview-Commit-ID: 1ufVK3uRYY3
media/libstagefright/binding/MP4Metadata.cpp
--- a/media/libstagefright/binding/MP4Metadata.cpp
+++ b/media/libstagefright/binding/MP4Metadata.cpp
@@ -824,19 +824,17 @@ MP4MetadataRust::GetNumberTracks(mozilla
 
   uint32_t total = 0;
   for (uint32_t i = 0; i < tracks; ++i) {
     mp4parse_track_info track_info;
     rv = mp4parse_get_track_info(mRustParser.get(), i, &track_info);
     if (rv != mp4parse_status_OK) {
       continue;
     }
-    // JPEG 'video' decoder is not supported in media stack yet.
-    if (track_info.codec == mp4parse_codec::mp4parse_codec_JPEG ||
-        track_info.codec == mp4parse_codec::mp4parse_codec_UNKNOWN) {
+    if (track_info.codec == mp4parse_codec::mp4parse_codec_UNKNOWN) {
       continue;
     }
     if (TrackTypeEqual(aType, track_info.track_type)) {
         total += 1;
     }
   }
 
   return {NS_OK, total};