4 Commits

Author SHA1 Message Date
Moritz Bunkus
1cb5ae4015 update ChangeLog 2013-09-17 19:15:34 +02:00
Moritz Bunkus
ee8a42d2cf Merge pull request #2 from maksqwe/master
Some of the fixes and optimization
2013-08-23 10:43:19 -07:00
maksqwe
9c07d1e39d 1. add std::nothrow to new operator because then ptr checked with NULL
2. "currentNewBlock" is assigned values twice successively
3. optimize std::vector<>::iterator's usage "iter++" -> "++iter". See preincrement and postincrement operator++()
2013-08-23 00:42:18 +03:00
Steve Lhomme
82a7b7c6b8 update the library version number after merge of some new elements 2013-06-15 18:36:05 +02:00
6 changed files with 18 additions and 7 deletions

View File

@@ -1,3 +1,15 @@
2013-09-17 mosu
New 1.4.1 version:
- Added new elements/classes DiscardPadding, CodecDelay and
SeekPreRoll
- The licensing information has been cleared up/unified.
- The Makefile now contain options for specifying the destination
base directory during installation ("DESTDIR") and for
specifying which library types to build ("link").
- The libraries are built without the "-ansi" and
"-fno-gnu-keywords" flags on Linux
- Code cleanup
2013-03-19 mosu/robux4
New 1.4.0 version:
* Note that this release is not binary compatible to 1.3.0 due to

View File

@@ -70,7 +70,7 @@ class MATROSKA_DLL_API DataBuffer {
{
if (bInternalBuffer)
{
myBuffer = new binary[mySize];
myBuffer = new (std::nothrow) binary[mySize];
if (myBuffer == NULL)
bValidValue = false;
else

View File

@@ -40,7 +40,7 @@
START_LIBMATROSKA_NAMESPACE
#define LIBMATROSKA_VERSION 0x010400
#define LIBMATROSKA_VERSION 0x010401
extern const std::string KaxCodeVersion;
extern const std::string KaxCodeDate;

View File

@@ -98,7 +98,6 @@ bool KaxCluster::AddFrameInternal(const KaxTrackEntry & track, uint64 timecode,
if (currentNewBlock == NULL || uint32(track.TrackNumber()) != uint32(currentNewBlock->TrackNumber()) || PastBlock != NULL || ForwBlock != NULL) {
KaxBlockGroup & aNewBlock = GetNewBlock();
MyNewBlock = currentNewBlock = &aNewBlock;
currentNewBlock = &aNewBlock;
}
if (PastBlock != NULL) {

View File

@@ -70,7 +70,7 @@ bool KaxCues::AddBlockBlob(const KaxBlockBlob & BlockReference)
// Do not add the element if it's already present.
std::vector<const KaxBlockBlob *>::iterator ListIdx;
for (ListIdx = myTempReferences.begin(); ListIdx != myTempReferences.end(); ListIdx++)
for (ListIdx = myTempReferences.begin(); ListIdx != myTempReferences.end(); ++ListIdx)
if (*ListIdx == &BlockReference)
return true;
@@ -83,7 +83,7 @@ void KaxCues::PositionSet(const KaxBlockBlob & BlockReference)
// look for the element in the temporary references
std::vector<const KaxBlockBlob *>::iterator ListIdx;
for (ListIdx = myTempReferences.begin(); ListIdx != myTempReferences.end(); ListIdx++) {
for (ListIdx = myTempReferences.begin(); ListIdx != myTempReferences.end(); ++ListIdx) {
if (*ListIdx == &BlockReference) {
// found, now add the element to the entry list
KaxCuePoint & NewPoint = AddNewChild<KaxCuePoint>(*this);
@@ -99,7 +99,7 @@ void KaxCues::PositionSet(const KaxBlockGroup & BlockRef)
// look for the element in the temporary references
std::vector<const KaxBlockBlob *>::iterator ListIdx;
for (ListIdx = myTempReferences.begin(); ListIdx != myTempReferences.end(); ListIdx++) {
for (ListIdx = myTempReferences.begin(); ListIdx != myTempReferences.end(); ++ListIdx) {
const KaxInternalBlock &refTmp = **ListIdx;
if (refTmp.GlobalTimecode() == BlockRef.GlobalTimecode() &&
refTmp.TrackNum() == BlockRef.TrackNumber()) {

View File

@@ -37,7 +37,7 @@
START_LIBMATROSKA_NAMESPACE
const std::string KaxCodeVersion = "1.4.0";
const std::string KaxCodeVersion = "1.4.1";
const std::string KaxCodeDate = __TIMESTAMP__;
END_LIBMATROSKA_NAMESPACE