bool KaxInternalBlock::AddFrame(const KaxTrackEntry & track, uint64 timecode, DataBuffer & buffer, LacingType lacing, bool invisible)
{
SetValueIsSet();
- if (myBuffers.size() == 0) {
+ if (myBuffers.empty()) {
// first frame
Timecode = timecode;
TrackNumber = track.TrackNumber();
*/
filepos_t KaxInternalBlock::RenderData(IOCallback & output, bool /* bForceRender */, bool /* bSaveDefault */)
{
- if (myBuffers.size() == 0) {
+ if (myBuffers.empty()) {
return 0;
} else {
assert(TrackNumber < 0x4000);
bool KaxCluster::AddFrame(const KaxTrackEntry & track, uint64 timecode, DataBuffer & buffer, KaxBlockGroup * & MyNewBlock, LacingType lacing)
{
- assert(Blobs.size() == 0); // mutually exclusive for the moment
+ assert(Blobs.empty()); // mutually exclusive for the moment
return AddFrameInternal(track, timecode, buffer, MyNewBlock, NULL, NULL, lacing);
}
bool KaxCluster::AddFrame(const KaxTrackEntry & track, uint64 timecode, DataBuffer & buffer, KaxBlockGroup * & MyNewBlock, const KaxBlockGroup & PastBlock, LacingType lacing)
{
- assert(Blobs.size() == 0); // mutually exclusive for the moment
+ assert(Blobs.empty()); // mutually exclusive for the moment
return AddFrameInternal(track, timecode, buffer, MyNewBlock, &PastBlock, NULL, lacing);
}
bool KaxCluster::AddFrame(const KaxTrackEntry & track, uint64 timecode, DataBuffer & buffer, KaxBlockGroup * & MyNewBlock, const KaxBlockGroup & PastBlock, const KaxBlockGroup & ForwBlock, LacingType lacing)
{
- assert(Blobs.size() == 0); // mutually exclusive for the moment
+ assert(Blobs.empty()); // mutually exclusive for the moment
return AddFrameInternal(track, timecode, buffer, MyNewBlock, &PastBlock, &ForwBlock, lacing);
}
KaxClusterTimecode * Timecode = static_cast<KaxClusterTimecode *>(this->FindElt(EBML_INFO(KaxClusterTimecode)));
*static_cast<EbmlUInteger *>(Timecode) = GlobalTimecode() / GlobalTimecodeScale();
- if (Blobs.size() == 0) {
+ if (Blobs.empty()) {
// old-school direct KaxBlockGroup
// SilentTracks handling