renamed ffmpeg decoder function names

This commit is contained in:
itsmattkc
2019-08-08 13:13:01 +10:00
parent 624fc99b78
commit 6708eca0c1
2 changed files with 7 additions and 6 deletions
+4 -4
View File
@@ -193,7 +193,7 @@ FramePtr FFmpegDecoder::Retrieve(const rational &timecode, const rational &lengt
int64_t target_ts = qFloor(timecode.toDouble() * rational(avstream_->time_base).flipped().toDouble());
// Index now if we haven't already
if (frame_index_.isEmpty() && !LoadIndex()) {
if (frame_index_.isEmpty() && !LoadFrameIndex()) {
Index();
}
@@ -447,7 +447,7 @@ void FFmpegDecoder::Index()
}
// Save index to file
SaveIndex();
SaveFrameIndex();
}
QString FFmpegDecoder::GetIndexFilename()
@@ -461,7 +461,7 @@ QString FFmpegDecoder::GetIndexFilename()
.append(QString::number(avstream_->index));
}
bool FFmpegDecoder::LoadIndex()
bool FFmpegDecoder::LoadFrameIndex()
{
// Load index from file
QFile index_file(GetIndexFilename());
@@ -486,7 +486,7 @@ bool FFmpegDecoder::LoadIndex()
return false;
}
void FFmpegDecoder::SaveIndex()
void FFmpegDecoder::SaveFrameIndex()
{
// Save index to file
QFile index_file(GetIndexFilename());