diff options
author | Niklas Haas <git@haasn.dev> | 2025-08-27 12:14:45 +0200 |
---|---|---|
committer | Niklas Haas <ffmpeg@haasn.dev> | 2025-08-29 13:22:03 +0000 |
commit | 4ede75b5f48df5a487ec85da4ec4ca2e16046341 (patch) | |
tree | 410cad1581b20efc4333c4da20519729341f6731 /tools/python | |
parent | 0828a3b6366042a2d65188c89a1f5bf0ae52ec75 (diff) | |
download | ffmpeg-master.tar.gz |
If this function returns an error after ff_sws_graph_add_pass() has been
called, and the pass->free callback is therefore already set up to free the
context, the graph will end up freed twice: once by the pass->free callback
(during ff_sws_graph_free()), and once before that by failure path of the
caller (e.g. add_legacy_sws_pass(), or init_legacy_subpass() itself for
cascaded contexts.)
The solution is to redefine the ownership of SwsGraph to pass clearly from
the caller of add_legacy_sws_pass() to init_legacy_subpass(), which can then
deal with appropriately freeing the context conditional on whether or not the
pass was already registered in the pass list.
Reported-by: 김영민 <kunshim@naver.com>
Signed-off-by: Niklas Haas <git@haasn.dev>
Diffstat (limited to 'tools/python')
0 files changed, 0 insertions, 0 deletions