| 45 | }; |
| 46 | |
| 47 | static 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 | |
| 63 | int ff_make_codec_str(void *logctx, const AVCodecParameters *par, |
| 64 | const AVRational *frame_rate, struct AVBPrint *out) |
no test coverage detected