Skip to content

Conversation

@YaboWei
Copy link

@YaboWei YaboWei commented Aug 24, 2018

If scale_qsv + enc and ONLY enc called by different thread, ONLY enc may got a Locked mfxFrameSurface1(

qf->surface = *(mfxFrameSurface1*)qf->frame->data[3];
) which is Locked by scale_qsv + enc's scale_qsv, and this surf would never be Unlocked, and this surf in qsv_pool(
static int qsv_init_pool(AVHWFramesContext *ctx, uint32_t fourcc)
) is "leak".

If scale_qsv also localize input surf like enc, ONLY enc would never got a Locked mfxFrameSurface1, it's OK.

@lizhong1008
Copy link

Patch looks good expect need a better commit message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants