mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
avformat/lcevc: merge duplicate IDR and NON_IDR branches
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user