Backed out changeset 2674b8eaba32 (bug 1390748)
authorCarsten "Tomcat" Book <cbook@mozilla.com>
Thu, 17 Aug 2017 08:35:08 +0200
changeset 375278 87e969d3da2b37264b58616e644c16e3577009c1
parent 375277 0828f347805fe1d28be42424c9c004e932a00780
child 375279 1f08c4e92e4a495f57460491ce7da0d30289c95a
push id49006
push usercbook@mozilla.com
push dateThu, 17 Aug 2017 06:41:01 +0000
treeherderautoland@eb39976c4a0f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1390748
milestone57.0a1
backs out2674b8eaba32d3634124a16f70a7949cc3a25fcc
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
Backed out changeset 2674b8eaba32 (bug 1390748)
media/libstagefright/binding/include/mp4_demuxer/ByteReader.h
--- a/media/libstagefright/binding/include/mp4_demuxer/ByteReader.h
+++ b/media/libstagefright/binding/include/mp4_demuxer/ByteReader.h
@@ -1,25 +1,30 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #ifndef BYTE_READER_H_
 #define BYTE_READER_H_
 
 #include "mozilla/EndianUtils.h"
+#include "mozilla/Vector.h"
 #include "nsTArray.h"
 #include "MediaData.h"
 
 namespace mp4_demuxer {
 
 class MOZ_RAII ByteReader
 {
 public:
   ByteReader() : mPtr(nullptr), mRemaining(0) {}
+  explicit ByteReader(const mozilla::Vector<uint8_t>& aData)
+    : mPtr(aData.begin()), mRemaining(aData.length()), mLength(aData.length())
+  {
+  }
   ByteReader(const uint8_t* aData, size_t aSize)
     : mPtr(aData), mRemaining(aSize), mLength(aSize)
   {
   }
   template<size_t S>
   explicit ByteReader(const AutoTArray<uint8_t, S>& aData)
     : mPtr(aData.Elements()), mRemaining(aData.Length()), mLength(aData.Length())
   {