From 70f111b184928feab0c94f762954b5ec83a441c6 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Thu, 6 Jan 2011 02:10:24 +0100 Subject: Decoder/encoder source cleanup. --- encoder.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'encoder.h') diff --git a/encoder.h b/encoder.h index 52c50ab..f68d51c 100644 --- a/encoder.h +++ b/encoder.h @@ -11,6 +11,8 @@ class EncoderBase { public: typedef boost::shared_ptr p; + virtual ~EncoderBase() {} + virtual size_t encode(const uint8_t *input, size_t input_size, uint8_t *output, size_t output_size) = 0; virtual size_t flush(uint8_t *output, size_t output_size) = 0; }; @@ -19,9 +21,11 @@ class EncoderBase { class EncoderFilter : public boost::iostreams::multichar_input_filter { private: EncoderBase::p encoder; + public: typedef boost::shared_ptr p; EncoderFilter(EncoderBase::p encoder_); + template std::streamsize read(Source& src, char *s, std::streamsize n) { char src_data[0x2000]; -- cgit v1.2.3