fixed bug where an unindexed video would cache a blank first frame
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user