You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-03 16:24:53 +02:00
qsv: Join the derived session to the parent
Should improve the performance on multiple transcoding from a single source.
This commit is contained in:
@@ -515,6 +515,9 @@ static int init_vpp_session(AVFilterContext *avctx, QSVVPPContext *s)
|
||||
if (ret != MFX_ERR_NONE)
|
||||
return AVERROR_UNKNOWN;
|
||||
}
|
||||
ret = MFXJoinSession(device_hwctx->session, s->session);
|
||||
if (ret != MFX_ERR_NONE)
|
||||
return AVERROR_UNKNOWN;
|
||||
|
||||
if (IS_OPAQUE_MEMORY(s->in_mem_mode) || IS_OPAQUE_MEMORY(s->out_mem_mode)) {
|
||||
s->opaque_alloc.In.Surfaces = s->surface_ptrs_in;
|
||||
|
||||
Reference in New Issue
Block a user