mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
lavfi/qsvvpp: use the right mfxFrameInfo when dynamic frame pool is used
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
This commit is contained in:
parent
a00cfc6c24
commit
5646285f76
@ -308,7 +308,7 @@ static int fill_frameinfo_by_link(mfxFrameInfo *frameinfo, AVFilterLink *link)
|
||||
|
||||
frames_ctx = (AVHWFramesContext *)link->hw_frames_ctx->data;
|
||||
frames_hwctx = frames_ctx->hwctx;
|
||||
*frameinfo = frames_hwctx->surfaces[0].Info;
|
||||
*frameinfo = frames_hwctx->nb_surfaces ? frames_hwctx->surfaces[0].Info : *frames_hwctx->info;
|
||||
} else {
|
||||
pix_fmt = link->format;
|
||||
desc = av_pix_fmt_desc_get(pix_fmt);
|
||||
|
Loading…
Reference in New Issue
Block a user