avcodec/mediacodecdec: use ff_hevc_ps_uninit()
Fixes memleaks. Signed-off-by: James Almer <jamrial@gmail.com> (cherry picked from commit 782e066e3e3d8015d6d64c47cda0925c10aebe08)
This commit is contained in:
parent
e5bbb52194
commit
af54886de8
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user