diff --git a/libavformat/codecstring.c b/libavformat/codecstring.c index c6672b7244..b0ccb93e8d 100644 --- a/libavformat/codecstring.c +++ b/libavformat/codecstring.c @@ -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;