diff options
author | James Almer <jamrial@gmail.com> | 2022-11-11 12:44:41 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-11-17 10:05:49 -0300 |
commit | cb925c0bc059ce54cb6f8d858d43378ec516f548 (patch) | |
tree | 83b26f54c6270c4dbb478add051cbe333d7b41e1 /libavformat/dashenc.c | |
parent | e9a67ababacb0c66481a17f5648b3594789e8914 (diff) | |
download | ffmpeg-cb925c0bc059ce54cb6f8d858d43378ec516f548.tar.gz |
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 <jamrial@gmail.com>
Diffstat (limited to 'libavformat/dashenc.c')
-rw-r--r-- | libavformat/dashenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |