csrc/ffmpeg/format/FormatIn.hpp
@@ -3,6 +3,7 @@ #include <stdint.h> #include <memory> #include <vector> #include "PsToEs.hpp" struct AVFormatContext; @@ -41,10 +42,12 @@ bool isVideoPkt(AVPacket *pkt); bool isAudioPkt(AVPacket *pkt); bool notVideoAudio(AVPacket *pkt); private: bool allocCodec(AVCodec *dec, AVStream *s, AVDictionary **options); public: AVStream *getStream(int type = -1); std::vector<AVStream*> allStreams(); AVCodecContext *getCodecContext(int type = 0); AVFormatContext *getFromatContext(){return ctx_;} const double getFPS()const{return fps_;}