diff options
author | Lynne <dev@lynne.ee> | 2025-03-29 22:44:11 +0000 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2025-04-14 06:10:40 +0200 |
commit | 79ff1f21c4bcd2b917973357138829d44c3836be (patch) | |
tree | 040bc695c3f96c271d51bdda8b9405443263ebfb /libavcodec/vulkan_hevc.c | |
parent | 4f64df2928d7e54c89a5e1263c6768d3dcfe61a2 (diff) | |
download | ffmpeg-79ff1f21c4bcd2b917973357138829d44c3836be.tar.gz |
vulkan_decode: only create sequence params in end_frame
We tried to create sequence params in both start_frame and end_frame.
This was redundant.
Just always create them in end_frame.
Diffstat (limited to 'libavcodec/vulkan_hevc.c')
-rw-r--r-- | libavcodec/vulkan_hevc.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/libavcodec/vulkan_hevc.c b/libavcodec/vulkan_hevc.c index e4a946ae0d..4b10da65a0 100644 --- a/libavcodec/vulkan_hevc.c +++ b/libavcodec/vulkan_hevc.c @@ -716,8 +716,6 @@ static int vk_hevc_start_frame(AVCodecContext *avctx, int err; HEVCContext *h = avctx->priv_data; HEVCLayerContext *l = &h->layers[h->cur_layer]; - FFVulkanDecodeContext *dec = avctx->internal->hwaccel_priv_data; - FFVulkanDecodeShared *ctx = dec->shared_ctx; HEVCFrame *pic = h->cur_frame; HEVCVulkanDecodePicture *hp = pic->hwaccel_picture_private; @@ -726,13 +724,6 @@ static int vk_hevc_start_frame(AVCodecContext *avctx, const HEVCSPS *sps = pps->sps; int nb_refs = 0; - if (!dec->session_params && - !(ctx->s.extensions & FF_VK_EXT_VIDEO_MAINTENANCE_2)) { - err = vk_hevc_create_params(avctx, &dec->session_params); - if (err < 0) - return err; - } - hp->h265pic = (StdVideoDecodeH265PictureInfo) { .flags = (StdVideoDecodeH265PictureInfoFlags) { .IrapPicFlag = IS_IRAP(h), |