AnsweredAssumed Answered

Memory leak in VPU Decoder

Question asked by David Shabat on Sep 5, 2019
Latest reply on Oct 17, 2019 by Joan Xie

We've seen memory leak in VPU decoder when decoding TS over UDP stream in Gstreamer with the following command.


gst-launch-1.0 udpsrc port=3000 ! video/mpegts ! tsdemux ! h265parse ! queue ! vpudec ! queue ! kmssink


The source stream is off the shelf encoder.


The leak occurs in the function gst_vpu_dec_object_decode. When VPU_DecDecodeBuf returens  VPU_DEC_NO_ENOUGH_INBUF and VPU_DEC_INPUT_USED, the code leaves the buffer allocated and moves to next frame. With our encoder it happens on all frames. It does not happen when playing a file locally.


Please advise the proper way to fix it.