From 729dd76195b7b7165d8859b0f3046b56e26af0ab Mon Sep 17 00:00:00 2001 From: Yandong Lin Date: Thu, 19 Dec 2024 16:53:43 +0800 Subject: [PATCH] fix[h264e_sps]: fix constraint_set3_flag flag issue When the profile idc is high profile and constraint_set3_flag=1,it must obey some rules of high 10 intra profile, such as contain only IDR pictures. Reference the h264 clause A.2.8 introduction. Change-Id: I9f886925a3810bc4ad9c7e70ebdc2194354c6eb5 Signed-off-by: Yandong Lin --- mpp/codec/enc/h264/h264e_sps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpp/codec/enc/h264/h264e_sps.c b/mpp/codec/enc/h264/h264e_sps.c index f82bcf3e..02641aaa 100644 --- a/mpp/codec/enc/h264/h264e_sps.c +++ b/mpp/codec/enc/h264/h264e_sps.c @@ -104,7 +104,7 @@ MPP_RET h264e_sps_update(H264eSps *sps, MppEncCfgSet *cfg) sps->constraint_set0 = 0; sps->constraint_set1 = 0; sps->constraint_set2 = 0; - sps->constraint_set3 = 1; + sps->constraint_set3 = 0; sps->constraint_set4 = 0; sps->constraint_set5 = 0; } break;