diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2011-01-10 19:19:20 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2011-01-10 19:19:20 +0100 |
commit | e5d94a47b5fb35f0a24bf3d2b604c4ed469ce6a1 (patch) | |
tree | ffd08c2bd52291c496a9216851252c08e44eac0a /encoders | |
parent | e79456d5850c35b8646342a7e8d3cbded31be364 (diff) |
Fixed arguments to VorbisEncoder::decode().
Diffstat (limited to 'encoders')
-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 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; |