viewer: allow switching open sequences

This commit is contained in:
itsmattkc
2020-03-21 22:18:17 +11:00
parent 3c3543a2a9
commit 51f02ea01b
19 changed files with 207 additions and 70 deletions
-1
View File
@@ -75,7 +75,6 @@ void FFmpegEncoder::WriteAudio(const AudioRenderingParams &pcm_info, const QStri
reinterpret_cast<const uint8_t**>(&input_data_array),
samples_needed);
//qDebug() << "swr_convert returned" << converted << "samples";
frame->pts = sample_counter;
sample_counter += converted;
-5
View File
@@ -65,14 +65,9 @@ void FFmpegFrameCache::Client::accessed(int i)
void FFmpegFrameCache::Client::remove_old_frames(qint64 older_than)
{
//int counter = 0;
while (!frames_.isEmpty() && frames_.first().accessed < older_than) {
FFmpegFrameCache::Release(frames_.takeFirst().frame);
//counter++;
}
//qDebug() << " * Removed" << counter << "frames";
}
Frame* FFmpegFrameCache::Get(const VideoRenderingParams &params)