src/DecoderFFmpeg.cpp
//	frameBuff.clear would only clean the pointer rather than whole resources. So we need to clear frameBuff by ourself.

frameBuff.clear would only clean the pointer rather than whole resources. So we need to clear frameBuff by ourself.
frameBuff . clear would only clean the pointer rather than whole resources . So we need to clear frameBuff by ourself .
void DecoderFFmpeg::flushBuffer(std::queue<AVFrame*>* frameBuff, std::mutex* mutex) {
	std::lock_guard<std::mutex> lock(*mutex);
	while (!frameBuff->empty()) {
		av_frame_free(&(frameBuff->front()));
		frameBuff->pop();
	}
}
void DecoderFFmpeg :: flushBuffer ( std :: queue < AVFrame * > * frameBuff , std :: mutex * mutex ) { std :: lock_guard < std :: mutex > lock ( * mutex ) ; while ( ! frameBuff -> empty ( ) ) { av_frame_free ( & ( frameBuff -> front ( ) ) ) ; frameBuff -> pop ( ) ; } }
frameBuff.clear would only clean the pointer rather than whole resources.
frameBuff . clear would only clean the pointer rather than whole resources .