From 3fa6aecb7f5472fc29ef3189228f5dc83a0c954a Mon Sep 17 00:00:00 2001 From: James Zern Date: Tue, 29 Mar 2016 16:55:42 -0700 Subject: [PATCH] mkvparser::BlockEntry: inline EOS() Change-Id: I1cd5ef4e438a285c733c9246411513f670c2c9c4 --- mkvparser/mkvparser.cc | 3 +-- mkvparser/mkvparser.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/mkvparser/mkvparser.cc b/mkvparser/mkvparser.cc index 14f3941..a5995fc 100644 --- a/mkvparser/mkvparser.cc +++ b/mkvparser/mkvparser.cc @@ -7447,7 +7447,6 @@ const BlockEntry* Cluster::GetEntry(const CuePoint& cp, BlockEntry::BlockEntry(Cluster* p, long idx) : m_pCluster(p), m_index(idx) {} BlockEntry::~BlockEntry() {} -bool BlockEntry::EOS() const { return (GetKind() == kBlockEOS); } const Cluster* BlockEntry::GetCluster() const { return m_pCluster; } long BlockEntry::GetIndex() const { return m_index; } @@ -7936,4 +7935,4 @@ long Block::Frame::Read(IMkvReader* pReader, unsigned char* buf) const { long long Block::GetDiscardPadding() const { return m_discard_padding; } -} // namespace mkvparser \ No newline at end of file +} // namespace mkvparser diff --git a/mkvparser/mkvparser.h b/mkvparser/mkvparser.h index a767194..528bdd6 100644 --- a/mkvparser/mkvparser.h +++ b/mkvparser/mkvparser.h @@ -126,7 +126,7 @@ class BlockEntry { public: virtual ~BlockEntry(); - bool EOS() const; + bool EOS() const { return (GetKind() == kBlockEOS); } const Cluster* GetCluster() const; long GetIndex() const; virtual const Block* GetBlock() const = 0;