mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-08 02:20:06 +08:00
[mpp_service]: Allow zero size rcb info
rk3588 encoder needs buffer end address so zero size should be allowed. Change-Id: Ie350f62c77d99f91b2ca1f02e7b4ff7afe0b0dd8 Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
@@ -355,9 +355,6 @@ MPP_RET mpp_service_rcb_info(void *ctx, MppDevRcbInfoCfg *cfg)
|
|||||||
if (!p->support_set_rcb_info)
|
if (!p->support_set_rcb_info)
|
||||||
return MPP_OK;
|
return MPP_OK;
|
||||||
|
|
||||||
if (!cfg->size)
|
|
||||||
return MPP_OK;
|
|
||||||
|
|
||||||
if (p->rcb_count >= MAX_RCB_OFFSET) {
|
if (p->rcb_count >= MAX_RCB_OFFSET) {
|
||||||
mpp_err_f("reach max offset definition\n", MAX_RCB_OFFSET);
|
mpp_err_f("reach max offset definition\n", MAX_RCB_OFFSET);
|
||||||
return MPP_NOK;
|
return MPP_NOK;
|
||||||
|
Reference in New Issue
Block a user