memory: try caching frameptrs instead of avframes so we have more control

This commit is contained in:
itsmattkc
2020-02-23 21:20:33 +11:00
parent 48cdb3a6dd
commit b1cb8489df
6 changed files with 158 additions and 135 deletions
+4 -2
View File
@@ -70,8 +70,8 @@ public:
const rational& timestamp() const;
void set_timestamp(const rational& timestamp);
/*const int64_t& native_timestamp();
void set_native_timestamp(const int64_t& timestamp);*/
const int64_t& native_timestamp();
void set_native_timestamp(const int64_t& timestamp);
/**
* @brief Get frame's format
@@ -141,6 +141,8 @@ private:
rational timestamp_;
int64_t native_timestamp_;
rational sample_aspect_ratio_;
};