diff options
Diffstat (limited to 'src/liblame_wrapper.cc')
-rw-r--r-- | src/liblame_wrapper.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/liblame_wrapper.cc b/src/liblame_wrapper.cc index 5603d6f..b4a0bd1 100644 --- a/src/liblame_wrapper.cc +++ b/src/liblame_wrapper.cc @@ -28,6 +28,8 @@ #include "liblame_wrapper.h" #include "miav_config.h" +#include <string.h> + LibLAMEWrapper::LibLAMEWrapper(Info *i) { info = i; @@ -64,7 +66,7 @@ LibLAMEWrapper::LibLAMEWrapper(Info *i) lame_set_copyright(gfp, 0); // is there a copyright on the encoded data? lame_set_original(gfp, 1); // is the encoded data on the original media? lame_set_error_protection(gfp, 0);// add 2 byte CRC protection to each frame? - lame_set_padding_type(gfp, PAD_NO); // PAD_NO, PAD_ALL, PAD_ADJUST, PAD_MAX_INDICATOR + // lame_set_padding_type(gfp, PAD_NO); // PAD_NO, PAD_ALL, PAD_ADJUST, PAD_MAX_INDICATOR // 0 = do not pad frames // 1 = always pad frames // 2 = adjust padding to satisfy bit rate @@ -108,7 +110,7 @@ Frame *LibLAMEWrapper::close(Frame *oldframe) int flush; - flush = lame_encode_finish(gfp, frame->data + offset, 7200); + flush = 0;//lame_encode_finish(gfp, frame->data + offset, 7200); frame->size = offset + flush; |