From cb925c0bc059ce54cb6f8d858d43378ec516f548 Mon Sep 17 00:00:00 2001 From: James Almer Date: Fri, 11 Nov 2022 12:44:41 -0300 Subject: avformat/vpcc: parse bitstream data to get profile and bitdepth Profile can be derived from values codecpar pixel format only with software formats. For hardware formats, we're forced to parse a frame header to get the required information. Signed-off-by: James Almer --- libavformat/dashenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/dashenc.c') diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index a0919f6f2d..9c1bcad9e3 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -338,7 +338,7 @@ static int init_segment_types(AVFormatContext *s) static void set_vp9_codec_str(AVFormatContext *s, AVCodecParameters *par, AVRational *frame_rate, char *str, int size) { VPCC vpcc; - int ret = ff_isom_get_vpcc_features(s, par, frame_rate, &vpcc); + int ret = ff_isom_get_vpcc_features(s, par, NULL, 0, frame_rate, &vpcc); if (ret == 0) { av_strlcatf(str, size, "vp09.%02d.%02d.%02d", vpcc.profile, vpcc.level, vpcc.bitdepth); -- cgit v1.2.3