1
0
Wolfgang Rosenauer 2016-04-27 08:37:08 +00:00 committed by Git OBS Bridge
parent 97bd16c7cb
commit fbe733d039

View File

@ -1,14 +1,22 @@
# HG changeset patch # HG changeset patch
# User Wolfgang Rosenauer <wr@rosenauer.org> # User Wolfgang Rosenauer <wr@rosenauer.org>
# Parent 0d19d2f09730100d3eadd782f534b71cc4150650 # Parent 5f8b5e8163ece92dc819896dd52b9dbf5f524fe3
diff --git a/media/libstagefright/binding/include/mp4_demuxer/ByteWriter.h b/media/libstagefright/binding/include/mp4_demuxer/ByteWriter.h diff --git a/media/libstagefright/binding/include/mp4_demuxer/ByteWriter.h b/media/libstagefright/binding/include/mp4_demuxer/ByteWriter.h
--- a/media/libstagefright/binding/include/mp4_demuxer/ByteWriter.h --- a/media/libstagefright/binding/include/mp4_demuxer/ByteWriter.h
+++ b/media/libstagefright/binding/include/mp4_demuxer/ByteWriter.h +++ b/media/libstagefright/binding/include/mp4_demuxer/ByteWriter.h
@@ -25,25 +25,27 @@ public: @@ -19,57 +19,64 @@ public:
{
}
~ByteWriter()
{
}
void WriteU8(uint8_t aByte) void WriteU8(uint8_t aByte)
{ {
mPtr.append(aByte); - mPtr.append(aByte);
+ bool rv;
+ rv = mPtr.append(aByte);
} }
void WriteU16(uint16_t aShort) void WriteU16(uint16_t aShort)
@ -32,13 +40,19 @@ diff --git a/media/libstagefright/binding/include/mp4_demuxer/ByteWriter.h b/med
void Write32(int32_t aLong) void Write32(int32_t aLong)
{ {
uint8_t c[4]; uint8_t c[4];
+ bool rv;
mozilla::BigEndian::writeInt32(&c[0], aLong); mozilla::BigEndian::writeInt32(&c[0], aLong);
mPtr.append(&c[0], 4); - mPtr.append(&c[0], 4);
+ rv = mPtr.append(&c[0], 4);
} }
@@ -53,18 +55,19 @@ public:
void WriteU64(uint64_t aLongLong)
{
uint8_t c[8]; uint8_t c[8];
+ bool rv;
mozilla::BigEndian::writeUint64(&c[0], aLongLong); mozilla::BigEndian::writeUint64(&c[0], aLongLong);
mPtr.append(&c[0], 8); - mPtr.append(&c[0], 8);
+ rv = mPtr.append(&c[0], 8);
} }
void Write64(int64_t aLongLong) void Write64(int64_t aLongLong)
@ -52,7 +66,14 @@ diff --git a/media/libstagefright/binding/include/mp4_demuxer/ByteWriter.h b/med
void Write(const uint8_t* aSrc, size_t aCount) void Write(const uint8_t* aSrc, size_t aCount)
{ {
mPtr.append(aSrc, aCount); - mPtr.append(aSrc, aCount);
+ bool rv;
+ rv = mPtr.append(aSrc, aCount);
} }
private: private:
mozilla::Vector<uint8_t>& mPtr;
};
}
#endif