avfilter/formats: Avoid redundant counter
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Sun, 15 Aug 2021 07:44:59 +0000 (09:44 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Fri, 20 Aug 2021 12:30:17 +0000 (14:30 +0200)
commit79595024ed887e2f473ec21ad3596af2c3fc4041
tree7bbf8dda5a84e08ed812b36eb6ff019158371849
parente88db774d8c3905fc664446914202f66ebc1a140
avfilter/formats: Avoid redundant counter

The ff_set_common_(formats|channel_layouts|samplerates) have to free
their list in case it doesn't have an owner; therefore they tracked
whether they attached it to an owner. But the list's refcount already
contains such a counter, so we don't have to keep track of whether we
have attached the list to an owner.

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
libavfilter/formats.c