Bug 1521214 - r=kinetik
authorChun-Min Chang <cchang@mozilla.com>
Tue, 22 Jan 2019 11:21:23 -0800
changeset 456521 0c8c91068e50be5a7a04bc7d5084f461cb0828f0
parent 456520 5e830c761690be82c00d7d64652dabeb800d87b7
child 456522 97f2cfdbba0709fa304ce77ac7eef7146f134c12
push id35488
push userdvarga@mozilla.com
push dateSat, 02 Feb 2019 09:44:51 +0000
treeherdermozilla-central@d8cebb3b46cf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskinetik
bugs1521214
milestone67.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 1521214 - r=kinetik
dom/media/BufferReader.h
--- a/dom/media/BufferReader.h
+++ b/dom/media/BufferReader.h
@@ -143,16 +143,17 @@ class MOZ_RAII BufferReader {
               ("%s: failure", __func__));
       return mozilla::Err(NS_ERROR_FAILURE);
     }
     return mozilla::BigEndian::readInt64(ptr);
   }
 
   const uint8_t* Read(size_t aCount) {
     if (aCount > mRemaining) {
+      mPtr += mRemaining;
       mRemaining = 0;
       return nullptr;
     }
     mRemaining -= aCount;
 
     const uint8_t* result = mPtr;
     mPtr += aCount;