csrc/wrapper.hpp
@@ -56,6 +56,7 @@ void BuildDecoder(); void GetPicDecoder(unsigned char **data, int *w, int *h, int *format, int *length, int64_t *id); public: // push stream void CloseStream(); void GetPacket(unsigned char **pktData, int *size, int *key); private: // stream 参数 @@ -63,6 +64,7 @@ bool audio_; int gb_, cpu_; bool run_dec_; bool run_stream_; // decoder 参数 std::unique_ptr<std::thread> thread_; std::atomic_bool stop_stream_;