| 718 | } |
| 719 | |
| 720 | static int d3d12va_encode_hevc_close(AVCodecContext *avctx) |
| 721 | { |
| 722 | D3D12VAEncodeHEVCContext *priv = avctx->priv_data; |
| 723 | |
| 724 | ff_cbs_fragment_free(&priv->current_access_unit); |
| 725 | ff_cbs_close(&priv->cbc); |
| 726 | |
| 727 | av_freep(&priv->common.codec_conf.pHEVCConfig); |
| 728 | av_freep(&priv->common.gop.pHEVCGroupOfPictures); |
| 729 | av_freep(&priv->common.level.pHEVCLevelSetting); |
| 730 | |
| 731 | return ff_d3d12va_encode_close(avctx); |
| 732 | } |
| 733 | |
| 734 | #define OFFSET(x) offsetof(D3D12VAEncodeHEVCContext, x) |
| 735 | #define FLAGS (AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM) |
nothing calls this directly
no test coverage detected