summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-01-10 19:37:12 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2011-01-10 19:37:12 +0100
commit0649a5c78eeef6eba731ee1c698e18554cad5670 (patch)
treea7cc986b618b95682e57e69d52fa48af69f7562a
parentfc4e49001eb220342713c94ee6a3021b7db5f1eb (diff)
Remove 'written' from encode call arguments in VorbisEncoder::read() as 'written' will always be 0 here.
-rw-r--r--encoders/vorbis_encoder.cpp2
1 files changed, 1 insertions, 1 deletions
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;