chore[astyle]: Format code by new astyle config

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Iafdb694219ad9d0407e622ba13fd729b935a2dad
This commit is contained in:
Herman Chen 2025-10-23 15:57:05 +08:00
parent ef11356680
commit 17a370d2d0
5 changed files with 9 additions and 8 deletions

View file

@ -1465,9 +1465,11 @@ rk_s32 kmpp_obj_set_ptr(KmppObj obj, const char *name, void* val)
ret = kmpp_obj_impl_set_ptr(tbl, impl->entry, val);
}
}
if (ret)
mpp_loge("obj %s set %s ptr failed ret %d\n",
impl ? impl->def ? impl->def->name : NULL : NULL, name, ret);
(impl && impl->def && impl->def->name) ? impl->def->name : NULL, name, ret);
return ret;
}
@ -1491,7 +1493,8 @@ rk_s32 kmpp_obj_get_ptr(KmppObj obj, const char *name, void **val)
if (ret)
mpp_loge("obj %s get %s ptr failed ret %d\n",
impl ? impl->def ? impl->def->name : NULL : NULL, name, ret);
(impl && impl->def && impl->def->name) ? impl->def->name : NULL, name, ret);
return ret;
}

View file

@ -1576,8 +1576,7 @@ MPP_RET mpp_notify_group(Mpp *mpp, MppBufferGroup group)
switch (mpp->mType) {
case MPP_CTX_DEC : {
if (group == mpp->mFrameGroup)
ret = mpp_notify_flag(mpp, MPP_DEC_NOTIFY_BUFFER_VALID |
MPP_DEC_NOTIFY_BUFFER_MATCH);
ret = mpp_notify_flag(mpp, MPP_DEC_NOTIFY_BUFFER_VALID | MPP_DEC_NOTIFY_BUFFER_MATCH);
} break;
default : {
} break;

View file

@ -4,7 +4,6 @@
# bracket style setting
--style=linux
#--style=kr
# indent setting
--indent=spaces=4
@ -12,7 +11,7 @@
#--indent-switches
#--indent-preprocessor
--min-conditional-indent=0
--max-instatement-indent=80
--max-instatement-indent=120
# padding setting
#--break-blocks