mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
avformat/codecstring: add support for LCEVC streams
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user