decoder: improved memory management

This commit is contained in:
itsmattkc
2020-10-13 23:49:30 +11:00
parent 65507d81ea
commit d620af412f
2 changed files with 24 additions and 13 deletions
+2 -1
View File
@@ -62,7 +62,8 @@ public:
FFmpegFramePool::ElementPtr GetFrameFromCache(const int64_t& t) const;
void RemoveFramesBefore(const qint64& t);
int TruncateCacheRangeTo(const qint64& t);
int TruncateCacheRangeToTime(const qint64& t);
int TruncateCacheRangeToFrames(int nb_frames);
void RemoveFirstFrame();
AVFormatContext* fmt_ctx() const