| 157 | } |
| 158 | |
| 159 | static AVFrame *vk_get_dpb_pool(FFVulkanDecodeShared *ctx) |
| 160 | { |
| 161 | int err; |
| 162 | AVFrame *avf = av_frame_alloc(); |
| 163 | if (!avf) |
| 164 | return NULL; |
| 165 | |
| 166 | err = av_hwframe_get_buffer(ctx->common.dpb_hwfc_ref, avf, 0x0); |
| 167 | if (err < 0) |
| 168 | av_frame_free(&avf); |
| 169 | |
| 170 | return avf; |
| 171 | } |
| 172 | |
| 173 | static void init_frame(FFVulkanDecodeContext *dec, FFVulkanDecodePicture *vkpic) |
| 174 | { |
no test coverage detected