summaryrefslogtreecommitdiff
path: root/libavcodec/snow.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-25 02:51:21 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-29 13:37:41 +0200
commit4200ed2e91d248ef62f7fb701a7679d0e0afa654 (patch)
tree29c1c9b12809d68a0a030202edf8e3fb672c29c0 /libavcodec/snow.c
parent20ee12c677c6f58afbae643f039ba06e7d6f070a (diff)
avcodec/mpegvideo: Allocate map and score_map buffers jointly
Reduces the amounts of allocs, frees and allocation checks. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/snow.c')
-rw-r--r--libavcodec/snow.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/snow.c b/libavcodec/snow.c
index cde09902c3..b6c8d5e256 100644
--- a/libavcodec/snow.c
+++ b/libavcodec/snow.c
@@ -635,7 +635,6 @@ av_cold void ff_snow_common_end(SnowContext *s)
s->m.me.temp= NULL;
av_freep(&s->m.me.scratchpad);
av_freep(&s->m.me.map);
- av_freep(&s->m.me.score_map);
av_freep(&s->m.sc.obmc_scratchpad);
av_freep(&s->block);