| 580 | } |
| 581 | |
| 582 | static int d3d12va_encode_h264_close(AVCodecContext *avctx) |
| 583 | { |
| 584 | D3D12VAEncodeH264Context *priv = avctx->priv_data; |
| 585 | |
| 586 | ff_cbs_fragment_free(&priv->current_access_unit); |
| 587 | ff_cbs_close(&priv->cbc); |
| 588 | |
| 589 | av_freep(&priv->common.codec_conf.pH264Config); |
| 590 | av_freep(&priv->common.gop.pH264GroupOfPictures); |
| 591 | av_freep(&priv->common.level.pH264LevelSetting); |
| 592 | |
| 593 | if (priv->common.rc.ConfigParams.pConfiguration_CQP != NULL) { |
| 594 | av_freep(&priv->common.rc.ConfigParams.pConfiguration_CQP); |
| 595 | } |
| 596 | |
| 597 | return ff_d3d12va_encode_close(avctx); |
| 598 | } |
| 599 | |
| 600 | #define OFFSET(x) offsetof(D3D12VAEncodeH264Context, x) |
| 601 | #define FLAGS (AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM) |
nothing calls this directly
no test coverage detected