From 822ae13835c2f6443d5b4fface6f3f547bcfcb11 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Thu, 6 Jan 2011 06:13:12 +0100 Subject: Implemented rudimentary ffmpeg-based decoder. --- encoders/lame_encoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'encoders') 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); -- cgit v1.2.3