avformat/lcevc: merge duplicate IDR and NON_IDR branches

Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
Zhao Zhili
2026-03-20 10:37:34 +08:00
parent 7b534c2bdc
commit eadce30402

View File

@@ -224,11 +224,8 @@ int ff_lcvec_parse_config_record(LCEVCDecoderConfigurationRecord *lvcc,
for (int i = 0; i < h2645_pkt.nb_nals; i++) {
const H2645NAL *nal = &h2645_pkt.nals[i];
if (nal->type == LCEVC_IDR_NUT) {
ret = write_nalu(lvcc, pb, nal);
if (ret < 0)
goto fail;
} else if (nal->type == LCEVC_NON_IDR_NUT) {
if (nal->type == LCEVC_IDR_NUT ||
nal->type == LCEVC_NON_IDR_NUT) {
ret = write_nalu(lvcc, pb, nal);
if (ret < 0)
goto fail;