|
|
@ -466,9 +466,7 @@ static mfxStatus qsv_frame_lock(mfxHDL pthis, mfxMemId mid, mfxFrameData *ptr) |
|
|
|
QSVMid *qsv_mid = mid; |
|
|
|
QSVMid *qsv_mid = mid; |
|
|
|
AVHWFramesContext *hw_frames_ctx = (AVHWFramesContext*)qsv_mid->hw_frames_ref->data; |
|
|
|
AVHWFramesContext *hw_frames_ctx = (AVHWFramesContext*)qsv_mid->hw_frames_ref->data; |
|
|
|
AVQSVFramesContext *hw_frames_hwctx = hw_frames_ctx->hwctx; |
|
|
|
AVQSVFramesContext *hw_frames_hwctx = hw_frames_ctx->hwctx; |
|
|
|
int size; |
|
|
|
|
|
|
|
int ret; |
|
|
|
int ret; |
|
|
|
mfxStatus err; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (qsv_mid->locked_frame) |
|
|
|
if (qsv_mid->locked_frame) |
|
|
|
return MFX_ERR_UNDEFINED_BEHAVIOR; |
|
|
|
return MFX_ERR_UNDEFINED_BEHAVIOR; |
|
|
@ -523,7 +521,6 @@ fail: |
|
|
|
static mfxStatus qsv_frame_unlock(mfxHDL pthis, mfxMemId mid, mfxFrameData *ptr) |
|
|
|
static mfxStatus qsv_frame_unlock(mfxHDL pthis, mfxMemId mid, mfxFrameData *ptr) |
|
|
|
{ |
|
|
|
{ |
|
|
|
QSVMid *qsv_mid = mid; |
|
|
|
QSVMid *qsv_mid = mid; |
|
|
|
int ret; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
av_frame_free(&qsv_mid->locked_frame); |
|
|
|
av_frame_free(&qsv_mid->locked_frame); |
|
|
|
av_frame_free(&qsv_mid->hw_frame); |
|
|
|
av_frame_free(&qsv_mid->hw_frame); |
|
|
|