From 053822d9ce76ed82b28bc57a9885c2057d47ea6d Mon Sep 17 00:00:00 2001 From: James Almer Date: Mon, 16 Mar 2026 18:46:48 -0300 Subject: [PATCH] avformat/codecstring: add support for LCEVC streams Signed-off-by: James Almer --- libavformat/codecstring.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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;