video analysis2.0拆分,ffmpeg封装go接口库
zhangmeng
2021-05-25 8e1abcf7787bef797de15e92521fa14df2865c21
csrc/thirdparty/gb28181/include/PsToEs.hpp
@@ -191,7 +191,7 @@
            //从缓存中获取buffinfo
            if (_this->m_rtpQueue.count_queue() == 0) {
//                printf(" count_queue == 0 \n");
                usleep(10000);
                usleep(200000);
                continue;
            }
@@ -210,6 +210,8 @@
               if (!buffinfo){
                  buffinfo = _this->m_rtpQueue.pop();
               }
               if (!buffinfo) continue;
               auto fpIframe = fopen(fileIFrameName, "wb+");
               fwrite(buffinfo->buff, buffinfo->buffLen, 1, fpIframe);
               fflush(fpIframe);