diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2024-05-03 22:28:16 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2024-05-13 03:40:18 +0200 |
commit | 46ad68084e4b1bb1c8f822a7252ce7351a17bac7 (patch) | |
tree | cdf4979536b87ae62a81c0122342fcff55347b32 | |
parent | e9bb586543d83fe0ed901834b853b6d64e327529 (diff) | |
download | ffmpeg-46ad68084e4b1bb1c8f822a7252ce7351a17bac7.tar.gz |
avcodec/dovi_rpuenc: initialize profile
Code is taken from dovi_rpudec
Fixes: CID1596604 Uninitialized scalar variable
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/dovi_rpuenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/dovi_rpuenc.c b/libavcodec/dovi_rpuenc.c index ad03e143ee..5a482a7a6e 100644 --- a/libavcodec/dovi_rpuenc.c +++ b/libavcodec/dovi_rpuenc.c @@ -565,6 +565,8 @@ int ff_dovi_rpu_generate(DOVIContext *s, const AVDOVIMetadata *metadata, set_ue_golomb(pb, vdr_rpu_id); s->mapping = &s->vdr[vdr_rpu_id]->mapping; + profile = s->cfg.dv_profile ? s->cfg.dv_profile : ff_dovi_guess_profile_hevc(hdr); + if (!use_prev_vdr_rpu) { set_ue_golomb(pb, mapping->mapping_color_space); set_ue_golomb(pb, mapping->mapping_chroma_format_idc); |