I tested PR10637 in version 5.2 with H.264, and it continues to create the ‘ExternalSemaphore’ object. If this object can be released, it might be a source of the leak.
Unfortunately, even though the code was committed to the repository, it missed the 5.31 version…