video analysis2.0拆分,ffmpeg封装go接口库
554325746@qq.com
2020-03-10 278634c0d2eeba9e3fcc3b4cd56ddfb3323277d7
csrc/worker/decoder.cpp
@@ -65,6 +65,8 @@
    }
    void decoder::GetFrame(unsigned char **data, int *w, int *h, int *format, int *length, int64_t *id){
        *data = NULL;
        *length = 0;
        AVFrame *frame = NULL;
@@ -74,7 +76,6 @@
            auto check = list_pkt_.front();
            if (check.id > next_idx_){
                next_idx_ = -1;
                logIt("decoder new list cpacket");
            }
            
            for (auto &i : list_pkt_){