Without ff_vk_exec_discard_deps which is called by ff_vk_exec_wait, the reference count of hwframe context cannot reach zero due to circular reference created by ff_vk_exec_add_dep_frame. Fix #10873
Unified · Split
| @@ -3394,9 +3394,7 @@ static int transfer_image_buf(AVHWFramesContext *hwfc, AVFrame *f, · 3393 unmodified lines | |||
| 3394 | if (err < 0) | 3394 | if (err < 0) |
| 3395 | return err; | 3395 | return err; |
| 3396 | 3396 | ||
| 3397 | /* Wait for the operation to complete when downloading */ | 3397 | ff_vk_exec_wait(&p->vkctx, exec); |
| 3398 | if (to_buf) | ||
| 3399 | ff_vk_exec_wait(&p->vkctx, exec); | ||
| 3400 | 3398 | ||
| 3401 | return 0; | 3399 | return 0; |
| 3402 | } | 3400 | } |