We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9f498e commit aa54da5Copy full SHA for aa54da5
libavcodec/vulkan_h264.c
@@ -483,10 +483,14 @@ static int vk_h264_end_frame(AVCodecContext *avctx)
483
const H264Context *h = avctx->priv_data;
484
H264Picture *pic = h->cur_pic_ptr;
485
H264VulkanDecodePicture *hp = pic->hwaccel_picture_private;
486
+ FFVulkanDecodeContext *dec = avctx->internal->hwaccel_priv_data;
487
FFVulkanDecodePicture *vp = &hp->vp;
488
FFVulkanDecodePicture *rvp[H264_MAX_PICTURE_COUNT] = { 0 };
489
AVFrame *rav[H264_MAX_PICTURE_COUNT] = { 0 };
490
491
+ if (!dec->session_params)
492
+ return AVERROR(EINVAL);
493
+
494
for (int i = 0; i < vp->decode_info.referenceSlotCount; i++) {
495
H264Picture *rp = hp->ref_src[i];
496
H264VulkanDecodePicture *rhp = rp->hwaccel_picture_private;
0 commit comments