avformat/codecstring: add support for LCEVC streams

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2026-03-16 18:46:48 -03:00
parent cbfd280f77
commit 053822d9ce

View File

@@ -29,6 +29,7 @@
#include "avc.h"
#include "avformat.h"
#include "internal.h"
#include "lcevc.h"
#include "nal.h"
#include "vpcc.h"
@@ -174,6 +175,14 @@ int ff_make_codec_str(void *logctx, const AVCodecParameters *par,
profile_compatibility, tier, level, constraints);
} else
return AVERROR(EINVAL);
} else if (par->codec_id == AV_CODEC_ID_LCEVC) {
LCEVCDecoderConfigurationRecord lvcc;
int err;
if (!par->extradata_size)
return AVERROR(EINVAL);
if ((err = ff_lcvec_parse_config_record(&lvcc, par->extradata, par->extradata_size)) < 0)
return err;
av_bprintf(out, "lvc1.vprf%u.vlev%u", lvcc.profile_idc, lvcc.level_idc);
} else if (par->codec_id == AV_CODEC_ID_AV1) {
// https://aomediacodec.github.io/av1-isobmff/#codecsparam
AV1SequenceParameters seq;