Memory leak in VPU Decoder

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Memory leak in VPU Decoder

1,152 Views
davidshabat
Contributor I

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.

 

Regards,

David

0 Kudos
3 Replies

983 Views
davidshabat
Contributor I

We are using DART-MX8M from Variscite with Yocto Sumo (kernel 4.14.78) BSP.

0 Kudos

983 Views
joanxie
NXP TechSupport
NXP TechSupport

this is the third party commany board, we couldn't test it, how about try to use waylandsink or glimagesink ? any difference?

0 Kudos

983 Views
joanxie
NXP TechSupport
NXP TechSupport

what board and bsp version do you use?

0 Kudos