[FFmpeg-cvslog] avcodec/mediacodecdec: use ff_hevc_ps_uninit()

James Almer git at videolan.org
Tue Jan 30 18:25:15 EET 2018


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Jan 20 16:55:17 2018 -0300| [782e066e3e3d8015d6d64c47cda0925c10aebe08] | committer: James Almer

avcodec/mediacodecdec: use ff_hevc_ps_uninit()

Fixes memleaks.

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=782e066e3e3d8015d6d64c47cda0925c10aebe08
---

 libavcodec/mediacodecdec.c | 2 ++
 1 file changed, 2 insertions(+)

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);



More information about the ffmpeg-cvslog mailing list