video analysis2.0拆分,ffmpeg封装go接口库
zhangmeng
2021-05-25 177293afbc1635e87d82070abeb687974326f41a
csrc/wrapper.cpp
@@ -463,7 +463,7 @@
            std::string ru(rtspUrl);
            if(handle_gb28181->addCamera(ru) == -1){
                delete(handle_gb28181);
                logIt("do addCamera Error\n");
                printf("do addCamera Error\n");
                ret = -2;
                return;
            }
@@ -471,7 +471,7 @@
            std::this_thread::sleep_for(std::chrono::seconds(1));
            int retLen = handle_gb28181->capturePic(handle_gb28181, retData, retDataLen, tt);
            if(retLen == 0){
                logIt("do capturePic failed:%d");
                printf("do capturePic failed:%d");
                ret = -1;
            }
@@ -494,7 +494,7 @@
            if (i++ > ttt) break;
        }
        t.detach();
        return -1;
        return -3;
    }
}