mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-20 15:55:13 +08:00
[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:
@@ -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;
|
||||
|
||||
|
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user