avcodec/mediacodecdec: use ff_hevc_ps_uninit()

Fixes memleaks.

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2018-01-20 16:55:17 -03:00
parent 222d7055e2
commit 782e066e3e
1 changed files with 2 additions and 0 deletions

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