summaryrefslogtreecommitdiff
path: root/encoders
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-01-10 19:19:20 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2011-01-10 19:19:20 +0100
commite5d94a47b5fb35f0a24bf3d2b604c4ed469ce6a1 (patch)
treeffd08c2bd52291c496a9216851252c08e44eac0a /encoders
parente79456d5850c35b8646342a7e8d3cbded31be364 (diff)
Fixed arguments to VorbisEncoder::decode().
Diffstat (limited to 'encoders')
-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 4256a20..e00e31f 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 += decode(buf+written, buf_size);
+ written += decode(buf+written, buf_size-written);
}
return written;