[mpp_enc]: Clear split arg and out when disabled

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Ibd94134cc2e25b9b076785a40fa39f7360878a43
This commit is contained in:
Herman Chen
2022-09-26 11:47:36 +08:00
parent 9b2c8f30ba
commit 45739cd4e7
2 changed files with 12 additions and 0 deletions

View File

@@ -493,6 +493,12 @@ static MPP_RET h264e_proc_split_cfg(MppEncSliceSplit *dst, MppEncSliceSplit *src
if (change & MPP_ENC_SPLIT_CFG_CHANGE_OUTPUT)
dst->split_out = src->split_out;
/* cleanup arg and out when split mode is disabled */
if (!dst->split_mode) {
dst->split_arg = 0;
dst->split_out = 0;
}
dst->change |= change;
src->change = 0;

View File

@@ -508,6 +508,12 @@ static MPP_RET h265e_proc_split_cfg(MppEncSliceSplit *dst, MppEncSliceSplit *src
if (change & MPP_ENC_SPLIT_CFG_CHANGE_OUTPUT)
dst->split_out = src->split_out;
/* cleanup arg and out when split mode is disabled */
if (!dst->split_mode) {
dst->split_arg = 0;
dst->split_out = 0;
}
dst->change |= change;
src->change = 0;