Displaying 3 results from an estimated 3 matches for "write_bitbuffer_".
2006 Nov 04
2
amd64 issue with flac-1.1.3 beta2
...= -1 EFAULT (Bad address)
write(2, "\nfoo.wav: ERROR during encoding\n", 32
foo.wav: ERROR during encoding
The final write is getting a bogus size.
I think I have tracked it down to "FLAC__bitbuffer_get_buffer" in
bitbuffer.c taking an unsigned * for bytes, but "write_bitbuffer_" in
stream_encoder.c is passing a size_t *. On my system it looks like unsigned
is 4 bytes, where size_t is 8 bytes.
Changing FLAC__bitbuffer_get_buffer to take a size_t * seems to fix it.
But as I said, I only have 1 days amd64 experience, so I don't really
know what I am doing! I also h...
2013 Aug 20
0
sf bug 256 - Virtual functions in destructor
...unsigned int
current_frame=733, void * client_data=0x0012fe1c) Line 4487 + 0x7a bytes C
Test.exe!write_frame_(FLAC__StreamEncoder * encoder=0x003571f8, const
unsigned char * buffer=0x0047daa8, unsigned int bytes=2804, unsigned int
samples=1128, int is_last_block=1) Line 2712 + 0x3a bytes C
Test.exe!write_bitbuffer_(FLAC__StreamEncoder * encoder=0x003571f8,
unsigned int samples=1128, int is_last_block=1) Line 2622 + 0x19 bytes C
Test.exe!process_frame_(FLAC__StreamEncoder * encoder=0x003571f8, int
is_fractional_block=1, int is_last_block=1) Line 3119 + 0x16 bytes C
Test.exe!FLAC__stream_encoder_finish(FLAC__St...
2012 Apr 05
2
[PATCH 2/2] V2: Use a single definition of MIN and MAX in sources
...er->private_->current_sample_number, samples-j));
/* "i <= blocksize" to overread 1 sample; see comment in OVERREAD_ decl */
for(i = encoder->private_->current_sample_number; i <= blocksize && j < samples; i++, j++) {
@@ -2411,8 +2402,8 @@ FLAC__bool write_bitbuffer_(FLAC__StreamEncoder *encoder, unsigned samples, FLAC
FLAC__bitwriter_clear(encoder->private_->frame);
if(samples > 0) {
- encoder->private_->streaminfo.data.stream_info.min_framesize = min(bytes, encoder->private_->streaminfo.data.stream_info.min_framesize);
- encoder-&...