From 0649a5c78eeef6eba731ee1c698e18554cad5670 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Mon, 10 Jan 2011 19:37:12 +0100 Subject: Remove 'written' from encode call arguments in VorbisEncoder::read() as 'written' will always be 0 here. --- encoders/vorbis_encoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'encoders') diff --git a/encoders/vorbis_encoder.cpp b/encoders/vorbis_encoder.cpp index dc8f34a..3704123 100644 --- a/encoders/vorbis_encoder.cpp +++ b/encoders/vorbis_encoder.cpp @@ -108,7 +108,7 @@ std::size_t VorbisEncoder::read(char* buf, std::size_t buf_size) { // run until we have a page or reached end of stream while(written == 0 && !ogg_page_eos(&og)) { - written += encode(buf+written, buf_size-written); + written = encode(buf, buf_size); } return written; -- cgit v1.2.3