diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2011-01-10 19:37:12 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2011-01-10 19:37:12 +0100 |
commit | 0649a5c78eeef6eba731ee1c698e18554cad5670 (patch) | |
tree | a7cc986b618b95682e57e69d52fa48af69f7562a | |
parent | fc4e49001eb220342713c94ee6a3021b7db5f1eb (diff) |
Remove 'written' from encode call arguments in VorbisEncoder::read() as 'written' will always be 0 here.
-rw-r--r-- | encoders/vorbis_encoder.cpp | 2 |
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; |