video analysis2.0拆分,ffmpeg封装go接口库
zhangmeng
2019-08-07 4eab3ca9bf020df2bb53fa2a36aa4f57d684225c
csrc/wrapper.cpp
@@ -48,6 +48,8 @@
    Wrapper::~Wrapper()
    {
        try
        {
        if(thread_){
            stop_stream_.store(true);
            thread_->join();
@@ -63,6 +65,13 @@
            free(i.data);
        }
    }
        catch(const std::exception& e)
        {
            logIt("WRAPPER EXCEPTION: ", e.what());
        }
    }
    void Wrapper::ScalePicture(const int w, const int h, const int flags){
        scale_w_ = w;