video analysis2.0拆分,ffmpeg封装go接口库
chenshijun
2019-09-10 a6dd7933e0bd8ae1fd083639758f7fee9fc7a151
csrc/wrapper.cpp
@@ -458,7 +458,7 @@
        list_avpkt_.pop_front();
    }
    void Wrapper::cacheAVPacket(const AVPacket &pkt){
        std::lock_guard<std::mutex> l(mutex_pic_);
        std::lock_guard<std::mutex> l(mutex_avpkt_);
        while(list_avpkt_.size() > 10){
//            printf("cacheAVPacket drop packets!!!!!!!!!!\n");
            for(int i = 0; i < 5; i++){