video analysis2.0拆分,ffmpeg封装go接口库
chenshijun
2019-07-23 5e85a7e80764e1a1eae39c8ce9bafed29d8773a9
csrc/ffmpeg/format/FormatIn.cpp
@@ -21,7 +21,6 @@
#include "../data/FrameData.hpp"
#include "../../common/gpu/info.h"
#include "PsToEs.hpp"
using namespace logif;
@@ -90,9 +89,10 @@
   int FormatIn::openGb28181(const char *filename, AVDictionary **options){
       std::string fn = filename;
      addCamera(fn);
      //GB28181API gb28181(fn);
      handle_gb28181.addCamera(fn);
        int ret = openWithCustomIO(NULL, readData, options);
        int ret = openWithCustomIO((void *)&handle_gb28181, handle_gb28181.readData, options);
        if(ret < 0){
            logIt("do openWithCustomIO failed:%d",ret);
        }