aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vp9.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-02 13:39:12 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-04 08:03:19 +0200
commitb0ee627ef9344a2606834806bdc8c64630495d07 (patch)
treeb667fefcb739306efad996c77fc9501e8f0004d3 /libavcodec/vp9.c
parent84f716ccffbcb15fd272b5678bae6b82e59a95cd (diff)
downloadffmpeg-b0ee627ef9344a2606834806bdc8c64630495d07.tar.gz
avcodec/vp9: Use av_freep() instead of av_free()
Otherwise the context would be in an inconsistent state if vp9_alloc_entries() failed (and if this would be checked). Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/vp9.c')
-rw-r--r--libavcodec/vp9.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index 8eb57eb8e6..8bdcb86625 100644
--- a/libavcodec/vp9.c
+++ b/libavcodec/vp9.c
@@ -790,7 +790,7 @@ static int decode_frame_header(AVCodecContext *avctx,
if (s->td) {
for (i = 0; i < s->active_tile_cols; i++)
vp9_tile_data_free(&s->td[i]);
- av_free(s->td);
+ av_freep(&s->td);
}
s->s.h.tiling.tile_cols = 1 << s->s.h.tiling.log2_tile_cols;