mediafoundation: huge h.264 encoder memory leak
I have the next pipeline (sink part):
mfh264device1enc -> h264parse (nal/byte-stream) -> appsink
And after 2 min. of encoding seg. fault due to memory leak. When I use openh264enc I have no issue:
openh264enc -> h264parse (nal/byte-stream) -> appsink
I tried to fix this issue (added gst_buffer_unref (buffer);
inside gst_mf_video_enc_process_output
), but it helped for a while. I could not find error, I think the problem can be inside h264parse. I use tree gst-plugins-bad
with commit c79db432992597c1c2984d47a6f899c74ec8bdc6
Thanks!