avcodec/mediacodecdec: use ff_hevc_ps_uninit()
authorJames Almer <jamrial@gmail.com>
Sat, 20 Jan 2018 19:55:17 +0000 (16:55 -0300)
committerJames Almer <jamrial@gmail.com>
Tue, 30 Jan 2018 16:15:44 +0000 (13:15 -0300)
Fixes memleaks.

Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/mediacodecdec.c

index 6c5d3dd..cb1151a 100644 (file)
@@ -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);