diff options
author | Haihao Xiang <haihao.xiang@intel.com> | 2024-05-08 14:03:15 +0800 |
---|---|---|
committer | Haihao Xiang <haihao.xiang@intel.com> | 2024-05-20 09:30:49 +0800 |
commit | 5646285f761c4c7f6104bb5c956a393a2f6239c0 (patch) | |
tree | a76236975d7e8f1bf6cd22ff80ce0c46f1496b31 | |
parent | a00cfc6c2461d9a2525b01e64fe140615c5d5f34 (diff) | |
download | ffmpeg-5646285f761c4c7f6104bb5c956a393a2f6239c0.tar.gz |
lavfi/qsvvpp: use the right mfxFrameInfo when dynamic frame pool is used
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
-rw-r--r-- | libavfilter/qsvvpp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c index 10d970652e..c4c338b36b 100644 --- a/libavfilter/qsvvpp.c +++ b/libavfilter/qsvvpp.c @@ -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); |