aboutsummaryrefslogtreecommitdiffstats
path: root/COPYING.LGPLv2.1
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-08-07 23:40:43 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-27 07:20:57 +0100
commit1f0bfdffe3797deb23ebc5ec9aea8b5dbc2f454b (patch)
tree6c29b71de04010194bcd07433813cb18ea39d963 /COPYING.LGPLv2.1
parent4516fc3e2b94c77b58749b22d7f1151ffb9e2114 (diff)
downloadffmpeg-1f0bfdffe3797deb23ebc5ec9aea8b5dbc2f454b.tar.gz
avfilter/vf_hwdownload: Fix leak of formats list upon error
If adding the list of input formats to its AVFilterLink fails, the list of output formats (which has not been attached to permanent storage yet) leaks. This has been fixed by not creating the lists of in- and output formats simultaneously. Instead creating said lists is relegated to ff_formats_pixdesc_filter() (this also avoids the reallocations implicit in using ff_add_format()) and the second list is only created after (and if) the first list has been permanently attached to its AVFilterLink. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> (cherry picked from commit 257cd5fa389465032b2b222fff5ada9dfebeb4d0)
Diffstat (limited to 'COPYING.LGPLv2.1')
0 files changed, 0 insertions, 0 deletions