diff options
author | Mikhail Burakov <mburakov@mailbox.org> | 2024-11-30 08:12:58 +0100 |
---|---|---|
committer | Mikhail Burakov <mburakov@mailbox.org> | 2024-11-30 08:12:58 +0100 |
commit | f9fe4a86a6b3dec8e5398251d7371a18bb45b1ca (patch) | |
tree | 581b5fe220535a309ebd1adb590b008b6b8f7385 /mfx_stub/mfxsession.c | |
parent | 237f17eb754a6872012555873d9e3c781be90e08 (diff) |
Some bugfixing to make decoding actually work
Diffstat (limited to 'mfx_stub/mfxsession.c')
-rw-r--r-- | mfx_stub/mfxsession.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/mfx_stub/mfxsession.c b/mfx_stub/mfxsession.c index 6a5cb74..ff8467a 100644 --- a/mfx_stub/mfxsession.c +++ b/mfx_stub/mfxsession.c @@ -36,14 +36,12 @@ mfxStatus MFXInit(mfxIMPL impl, mfxVersion* ver, mfxSession* session) { mfxStatus MFXClose(mfxSession session) { if (session->mids) { - for (size_t i = 0; i < session->mids_count; i++) { - mfxFrameAllocResponse response = { - .mids = session->mids, - .NumFrameActual = (mfxU16)session->mids_count, - }; - assert(session->allocator.Free(session->allocator.pthis, &response) == - MFX_ERR_NONE); - } + mfxFrameAllocResponse response = { + .mids = session->mids, + .NumFrameActual = (mfxU16)session->mids_count, + }; + assert(session->allocator.Free(session->allocator.pthis, &response) == + MFX_ERR_NONE); free(session->mids); } if (session->context_id != VA_INVALID_ID) { |