video analysis2.0拆分,ffmpeg封装go接口库
zhangmeng
2022-04-26 ab3d17cd44625a762fc10f0f1fd8f2c46b980aff
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){