aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/utils.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-05-19 14:45:34 +0200
committerAnton Khirnov <anton@khirnov.net>2021-07-03 15:56:16 +0200
commit0f8e0957d23038f80c8c6193b4f940cfd0b42c9c (patch)
treee34c83784823db8d78463012d983ea925670ca63 /libswscale/utils.c
parent2730639259f5bdf81d4223cd8f4275e2939a1482 (diff)
downloadffmpeg-0f8e0957d23038f80c8c6193b4f940cfd0b42c9c.tar.gz
sws: do not reallocate scratch buffers for each slice
Diffstat (limited to 'libswscale/utils.c')
-rw-r--r--libswscale/utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c
index d673209d95..974e2d5179 100644
--- a/libswscale/utils.c
+++ b/libswscale/utils.c
@@ -2295,6 +2295,9 @@ void sws_freeContext(SwsContext *c)
av_freep(&c->gamma);
av_freep(&c->inv_gamma);
+ av_freep(&c->rgb0_scratch);
+ av_freep(&c->xyz_scratch);
+
ff_free_filters(c);
av_free(c);