aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2018-01-20 16:55:17 -0300
committerJames Almer <jamrial@gmail.com>2018-01-30 13:15:44 -0300
commit782e066e3e3d8015d6d64c47cda0925c10aebe08 (patch)
tree5ad689f47b09d28922e8e193075132bca181452b
parent222d7055e2dd20eb1381c257d34a50ec4c8dadb0 (diff)
downloadffmpeg-782e066e3e3d8015d6d64c47cda0925c10aebe08.tar.gz
avcodec/mediacodecdec: use ff_hevc_ps_uninit()
Fixes memleaks. Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/mediacodecdec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/mediacodecdec.c b/libavcodec/mediacodecdec.c
index 6c5d3ddd79..cb1151a195 100644
--- a/libavcodec/mediacodecdec.c
+++ b/libavcodec/mediacodecdec.c
@@ -258,6 +258,8 @@ static int hevc_set_extradata(AVCodecContext *avctx, FFAMediaFormat *format)
}
done:
+ ff_hevc_ps_uninit(&ps);
+
av_freep(&vps_data);
av_freep(&sps_data);
av_freep(&pps_data);