video analysis2.0拆分,ffmpeg封装go接口库
chenshijun
2019-09-10 c14c22124dea2e93ba7a55c5b7dc6d3851392366
list_avpkt_的互斥量mutex_avpkt_的bug
1个文件已修改
2 ■■■ 已修改文件
csrc/wrapper.cpp 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
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++){