MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / set_vp9_codec_str

Function set_vp9_codec_str

libavformat/codecstring.c:47–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45};
46
47static void set_vp9_codec_str(void *logctx, const AVCodecParameters *par,
48 const AVRational *frame_rate, AVBPrint *out)
49{
50 VPCC vpcc;
51 int ret = ff_isom_get_vpcc_features(logctx, par, NULL, 0, frame_rate, &vpcc);
52 if (ret == 0) {
53 av_bprintf(out, "vp09.%02d.%02d.%02d",
54 vpcc.profile, vpcc.level, vpcc.bitdepth);
55 } else {
56 // Default to just vp9 in case of error while finding out profile or level
57 if (logctx)
58 av_log(logctx, AV_LOG_WARNING, "Could not find VP9 profile and/or level\n");
59 av_bprintf(out, "vp9");
60 }
61}
62
63int ff_make_codec_str(void *logctx, const AVCodecParameters *par,
64 const AVRational *frame_rate, struct AVBPrint *out)

Callers 1

ff_make_codec_strFunction · 0.85

Calls 3

av_bprintfFunction · 0.85
av_logFunction · 0.85

Tested by

no test coverage detected