video analysis2.0拆分,ffmpeg封装go接口库
chenshijun
2019-09-10 c14c22124dea2e93ba7a55c5b7dc6d3851392366
csrc/wrapper.cpp
@@ -338,7 +338,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++){