Backed out changeset 716d122771c6 (bug 1144107) for bustage.
authorRyan VanderMeulen <ryanvm@gmail.com>
Wed, 15 Jul 2015 09:41:32 -0400
changeset 275351 e699a62fdcbc2f37c91551803539ea7676d7e783
parent 275350 48ef6d7a94344109292a787e97615adbf86dc301
child 275352 5331e255aab27d8638d9daabe8a5c3328dde54b0
push id863
push userraliiev@mozilla.com
push dateMon, 03 Aug 2015 13:22:43 +0000
treeherdermozilla-release@f6321b14228d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1144107
milestone40.0
backs out716d122771c600b4bfc443ea7e1725ad5cc200d7
Backed out changeset 716d122771c6 (bug 1144107) for bustage.
media/libstagefright/binding/BufferStream.cpp
--- a/media/libstagefright/binding/BufferStream.cpp
+++ b/media/libstagefright/binding/BufferStream.cpp
@@ -19,17 +19,17 @@ BufferStream::BufferStream()
 BufferStream::ReadAt(int64_t aOffset, void* aData, size_t aLength,
                      size_t* aBytesRead)
 {
   if (aOffset < mStartOffset || aOffset > mStartOffset + mData.Length()) {
     return false;
   }
   *aBytesRead =
     std::min(aLength, size_t(mStartOffset + mData.Length() - aOffset));
-  memcpy(aData, mData->Elements() + aOffset - mStartOffset, *aBytesRead);
+  memcpy(aData, &mData[aOffset - mStartOffset], *aBytesRead);
   return true;
 }
 
 /*virtual*/ bool
 BufferStream::CachedReadAt(int64_t aOffset, void* aData, size_t aLength,
                            size_t* aBytesRead)
 {
   return ReadAt(aOffset, aData, aLength, aBytesRead);