mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-06 17:46:50 +08:00
[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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user