fixed audio buffer size overflow on long clips

This commit is contained in:
itsmattkc
2019-01-21 10:02:37 +11:00
parent 2746e727f6
commit ae4fdf4846
3 changed files with 9 additions and 7 deletions
+3 -1
View File
@@ -364,7 +364,9 @@ void cache_audio_worker(Clip* c, bool scrubbing, QVector<Clip*>& nests) {
if (frame->nb_samples == 0) {
break;
} else {
long buffer_timeline_out = get_buffer_offset_from_frame(c->sequence->frame_rate, timeline_out);
unsigned long buffer_timeline_out = get_buffer_offset_from_frame(c->sequence->frame_rate, timeline_out);
qDebug() << "bto:" << buffer_timeline_out;
audio_write_lock.lock();
while (c->frame_sample_index < nb_bytes