ffmpegdecoder: began work on the index process working in tandem with the

retrieval process
This commit is contained in:
itsmattkc
2020-02-20 00:06:20 +11:00
parent e68e89c40b
commit 95ca19d547
2 changed files with 125 additions and 0 deletions
+7
View File
@@ -34,6 +34,8 @@ extern "C" {
#include "codec/waveoutput.h"
#include "project/item/footage/videostream.h"
//#define USE_VIDEO_INDEX
/**
* @brief A Decoder derivative that wraps FFmpeg functions as on Olive decoder
*/
@@ -115,7 +117,12 @@ private:
AVPacket* pkt_;
#ifdef USE_VIDEO_INDEX
AVFrame* frame_;
#else
AVFrame* frames_[2];
AVFrame* last_retrieved_frame_;
#endif
AVDictionary* opts_;