mirror of https://github.com/FFmpeg/FFmpeg.git
The temporary AVFrame on staack enables us to use the common dependency/dispatch code in prepare_frame(). The prepare_frame() function is used for both frame initialization and frame import/export queue family transfer operations. In the former case, no AVFrame exists yet, so, as this is purely libavutil code, we create a temporary frame on stack. Otherwise, we'd need to allocate multiple frames somewhere, one for each possible command buffer dispatch.pull/389/head
parent
94e17a63a4
commit
33fc919bb7
3 changed files with 209 additions and 811 deletions
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue