[mpp_enc]: Add max 2 frame delay on async enc path

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I34dda78bdc3511272dfc76dd8b80e82540298ad9
This commit is contained in:
Herman Chen
2022-06-02 15:35:23 +08:00
parent 811e468f5a
commit cf699e9faa

View File

@@ -676,7 +676,8 @@ MPP_RET Mpp::put_frame_async(MppFrame frame)
if (mFrmIn->trylock())
return MPP_NOK;
if (mFrmIn->list_size()) {
/* NOTE: the max input queue length is 2 */
if (mFrmIn->list_size() >= 2) {
mFrmIn->unlock();
return MPP_NOK;
}