Bug 1322587: [MSE] P1. Fix error message. r=gerald
authorJean-Yves Avenard <jyavenard@mozilla.com>
Fri, 09 Dec 2016 09:03:09 -1000
changeset 325551 9dfd492a1bf78aec2de87c7f2f5eba9d237c351f
parent 325550 fd5cb70c0286e9792420f3a3506d160591d33058
child 325552 0d0995d0991141bacce45733ad194a122af1da82
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersgerald
bugs1322587
milestone53.0a1
Bug 1322587: [MSE] P1. Fix error message. r=gerald MozReview-Commit-ID: E6IH5t2uBKg
dom/media/mediasource/ContainerParser.cpp
--- a/dom/media/mediasource/ContainerParser.cpp
+++ b/dom/media/mediasource/ContainerParser.cpp
@@ -398,20 +398,20 @@ private:
         for (const auto& boxType : validBoxes) {
           if (type == boxType) {
             mValid = true;
             break;
           }
         }
         if (!mValid) {
           // No point continuing.
-          mLastInvalidBox[0] = typec[3];
-          mLastInvalidBox[1] = typec[2];
-          mLastInvalidBox[2] = typec[1];
-          mLastInvalidBox[3] = typec[0];
+          mLastInvalidBox[0] = typec[0];
+          mLastInvalidBox[1] = typec[1];
+          mLastInvalidBox[2] = typec[2];
+          mLastInvalidBox[3] = typec[3];
           mLastInvalidBox[4] = '\0';
           break;
         }
         if (mInitOffset.isNothing() &&
             mp4_demuxer::AtomType(type) == initAtom) {
           mInitOffset = Some(reader.Offset());
         }
         if (mMediaOffset.isNothing() &&