[FFmpeg-cvslog] avcodec/mediacodecdec: use ff_hevc_ps_uninit()
James Almer
git at videolan.org
Wed Jan 31 03:11:21 EET 2018
ffmpeg | branch: release/3.4 | James Almer <jamrial at gmail.com> | Sat Jan 20 16:55:17 2018 -0300| [af54886de8ab5845bef6f67431f1ef8f68b9f58d] | committer: James Almer
avcodec/mediacodecdec: use ff_hevc_ps_uninit()
Fixes memleaks.
Signed-off-by: James Almer <jamrial at gmail.com>
(cherry picked from commit 782e066e3e3d8015d6d64c47cda0925c10aebe08)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=af54886de8ab5845bef6f67431f1ef8f68b9f58d
---
libavcodec/mediacodecdec.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/mediacodecdec.c b/libavcodec/mediacodecdec.c
index 6962ce2474..366c039de4 100644
--- a/libavcodec/mediacodecdec.c
+++ b/libavcodec/mediacodecdec.c
@@ -256,6 +256,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);
More information about the ffmpeg-cvslog
mailing list