fixed bug where an unindexed video would cache a blank first frame

This commit is contained in:
itsmattkc
2019-09-10 19:12:19 +10:00
parent 4c40475a6c
commit 69ca2b2a50
7 changed files with 14 additions and 6 deletions
+4
View File
@@ -478,6 +478,10 @@ void FFmpegDecoder::Index()
// Save index to file
SaveFrameIndex();
// Reset state
avcodec_flush_buffers(codec_ctx_);
av_seek_frame(fmt_ctx_, avstream_->index, 0, AVSEEK_FLAG_BACKWARD);
}
QString FFmpegDecoder::GetIndexFilename()