From ab3d17cd44625a762fc10f0f1fd8f2c46b980aff Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期二, 26 四月 2022 11:42:19 +0800 Subject: [PATCH] capture use cpu and add arm version --- csrc/ffmpeg/format/FormatIn.cpp | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/csrc/ffmpeg/format/FormatIn.cpp b/csrc/ffmpeg/format/FormatIn.cpp index 89a28fa..b827eb6 100644 --- a/csrc/ffmpeg/format/FormatIn.cpp +++ b/csrc/ffmpeg/format/FormatIn.cpp @@ -35,7 +35,9 @@ ,io_ctx_(NULL) ,read_io_buff_(NULL) ,read_io_buff_size_(32768) +#ifdef GB28181 ,handle_gb28181(NULL) +#endif ,fps_(25.0) {} @@ -49,7 +51,9 @@ ,io_ctx_(NULL) ,read_io_buff_(NULL) ,read_io_buff_size_(32768) +#ifdef GB28181 ,handle_gb28181(NULL) +#endif ,fps_(25.0) { prop_ = new VideoProp; @@ -72,9 +76,11 @@ ctx_ = NULL; } +#ifdef GB28181 if (handle_gb28181){ delete handle_gb28181; } +#endif if(io_ctx_){ av_freep(&io_ctx_->buffer); @@ -115,6 +121,7 @@ return 0; } +#ifdef GB28181 int FormatIn::openGb28181(const char *filename, AVDictionary **options){ std::string fn = filename; @@ -142,7 +149,7 @@ return ret; } - +#endif ///////////////////////////////////////////////////////////////////////// int FormatIn::open(const char *filename, AVDictionary **options){ -- Gitblit v1.8.0