summaryrefslogtreecommitdiff
path: root/encoders
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2011-01-06 06:13:12 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2011-01-06 06:13:12 +0100
commit822ae13835c2f6443d5b4fface6f3f547bcfcb11 (patch)
tree2a9c2ec01f90b8dcb26b2d873fd23443ed8d4a14 /encoders
parent6f2fefdd9ff5f8561b3538efb5eb0765a9b4a141 (diff)
Implemented rudimentary ffmpeg-based decoder.
Diffstat (limited to 'encoders')
-rw-r--r--encoders/lame_encoder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/encoders/lame_encoder.cpp b/encoders/lame_encoder.cpp
index be6f684..6616b87 100644
--- a/encoders/lame_encoder.cpp
+++ b/encoders/lame_encoder.cpp
@@ -24,8 +24,8 @@ size_t EncoderLame::flush(uint8_t *output, size_t output_size) {
}
std::size_t EncoderLame::read(char* buf, std::size_t buf_size) {
- char src_data[0x2000];
- std::streamsize src_read = source->read(src_data, 0x2000);
+ char src_data[0x30000];
+ std::streamsize src_read = source->read(src_data, 0x30000);
if(src_read < 0)
src_read = 0;
std::streamsize size = encode((const uint8_t*)src_data, src_read, (uint8_t*)buf, buf_size);