From eadce304028d59e6280715c5b87736dafe09ab5d Mon Sep 17 00:00:00 2001 From: Zhao Zhili Date: Fri, 20 Mar 2026 10:37:34 +0800 Subject: [PATCH] avformat/lcevc: merge duplicate IDR and NON_IDR branches Signed-off-by: Zhao Zhili --- libavformat/lcevc.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libavformat/lcevc.c b/libavformat/lcevc.c index 341d8d1694..f6a5bf1aaa 100644 --- a/libavformat/lcevc.c +++ b/libavformat/lcevc.c @@ -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;