2017-09-21 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in 'lib/rdrenderer.cpp' that caused audio corruption
	when rendering logs longer than 44:30.
This commit is contained in:
Fred Gleason 2017-09-21 07:05:26 -04:00
parent f9efd33d02
commit cb4c4dafd8
2 changed files with 5 additions and 2 deletions

View File

@ -16042,3 +16042,6 @@
2017-09-20 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdrender(1) that caused the --channels option
to be ignored.
2017-09-21 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'lib/rdrenderer.cpp' that caused audio corruption
when rendering logs longer than 44:30.

View File

@ -519,8 +519,8 @@ bool RDRenderer::Render(const QString &outfile,RDLogEvent *log,RDSettings *s,
lls.at(i)->cut()->startPoint());
}
pcm=new float[frames*s->channels()];
memset(pcm,0,frames*s->channels());
memset(pcm,0,frames*s->channels()*sizeof(float));
for(unsigned j=0;j<i;j++) {
Sum(pcm,lls.at(j),frames,s->channels());
}