From 8e1abcf7787bef797de15e92521fa14df2865c21 Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期二, 25 五月 2021 17:10:18 +0800 Subject: [PATCH] get stream with 200ms every times --- csrc/ffmpeg/format/FormatIn.hpp | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/csrc/ffmpeg/format/FormatIn.hpp b/csrc/ffmpeg/format/FormatIn.hpp index e904145..aebdbf8 100644 --- a/csrc/ffmpeg/format/FormatIn.hpp +++ b/csrc/ffmpeg/format/FormatIn.hpp @@ -24,6 +24,7 @@ { public: explicit FormatIn(bool hw=true); + explicit FormatIn(const VideoProp &prop, bool hw=true); ~FormatIn(); public: @@ -50,12 +51,15 @@ AVFormatContext *getFromatContext(){return ctx_;} const double getFPS()const{return fps_;} const bool IsHEVC()const; + const bool IsAVC1()const; private: AVFormatContext *ctx_; AVCodecContext *dec_ctx_; int vs_idx_; int as_idx_; + + VideoProp *prop_; bool hw_accl_; double fps_; private: -- Gitblit v1.8.0