Skip to content

libs: encoder: unref formats array if none

The formats array is always created, in order to keep the logic and to avoid broken caps, if this formats array doesn't contain any elements, it has to be unref and the function should return NULL.

Merge request reports