mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
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>
This commit is contained in:
parent
e9bb586543
commit
46ad68084e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user