video analysis2.0拆分,ffmpeg封装go接口库
zhangmeng
2019-07-26 1518fb1f0e59beedfa32663adb3d0bee302f1ad5
csrc/buz/recorder.cpp
@@ -96,6 +96,9 @@
            //callback to frame index and path
            if(func_rec_info_){
                func_rec_info_(file_frame_index_, file_path_);
                logIt("recoder index %d, file name %s\n", file_frame_index_, file_path_.c_str());
            }else{
                logIt("recorder has no func_rec_info");
            }
        }
@@ -222,7 +225,7 @@
        void Recorder::maybe_dump_gop(){
            //超过min/2,丢弃gop
            while (list_pkt_.size() > minduration) {
            while (list_pkt_.size() > maxduration) {
                list_pkt_.pop_front();
                while(!list_pkt_.empty()){
                    auto &cache = list_pkt_.front();