fixed audio buffer size overflow on long clips
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user