diff options
Diffstat (limited to 'coding/bit_streams.hpp')
-rw-r--r-- | coding/bit_streams.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/coding/bit_streams.hpp b/coding/bit_streams.hpp index 07fbb3b294..46656b37af 100644 --- a/coding/bit_streams.hpp +++ b/coding/bit_streams.hpp @@ -30,7 +30,7 @@ public: LOG(LWARNING, ("Caught an exception when flushing BitWriter.")); } } - + // Returns the number of bits that have been sent to BitWriter, // including those that are in m_buf and are possibly // not flushed yet. @@ -66,6 +66,7 @@ public: } m_buf = bits; } + m_flushed = false; } private: @@ -81,6 +82,7 @@ private: TWriter & m_writer; uint8_t m_buf; uint64_t m_bitsWritten; + bool m_flushed; }; template <typename TSource> |