Strangely, my program has no memory leaks, I made the following modifications, the enc’s Output_plane DQ and Q operations are completed sequentially in one thread, and the start and exit mechanisms use the new event mechanism (setEncoderCommand func)
enc.output_plane–DMA_BUF
enc.capture_plane–MMAP
2,But the revised ‘01_video_encode’ still has a memory leak, is it because the demo mmap out the dma_buf ?