search for: pvpcmbuffer

Displaying 1 result from an estimated 1 matches for "pvpcmbuffer".

Did you mean: pcmbuffer
2012 Jun 10
1
[libtremor] ov_read is reading past file size
...t it do the final ov_read call it attempts to read up to 168320 bytes, which is past what the PCM data actually is and the allocated buffer size. unsigned int uiPCMSamples = (unsigned int)ov_pcm_total(&vf, -1); unsigned int totalPCMSize = uiPCMSamples * vi->channels * sizeof(short); void* pvPCMBuffer = malloc(totalPCMSize); This yields 167680 bytes, so tremor knows how much PCM data there is. However ov_read is just going ahead and skipping past that number reading up to 168320 bytes. So either I have to increase the size of my pvPCMBuffer by some magic number or tremor is reading to far....