diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2024-05-03 22:43:22 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2024-05-06 03:00:40 +0200 |
commit | c7075cdb676e217331d400bf2fb2c4a62268f649 (patch) | |
tree | d174f18df948e669d568dd14d21f3b1e7ebe5ae6 | |
parent | 2e16285fe833e41890db33eb39b4a69f4370a5cf (diff) | |
download | ffmpeg-c7075cdb676e217331d400bf2fb2c4a62268f649.tar.gz |
avcodec/dovi_rpuenc: Initialize bl_compat_id
Fixes: CID1596607 Uninitialized scalar variable
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/dovi_rpuenc.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libavcodec/dovi_rpuenc.c b/libavcodec/dovi_rpuenc.c index 3feaa04b9e..ad03e143ee 100644 --- a/libavcodec/dovi_rpuenc.c +++ b/libavcodec/dovi_rpuenc.c @@ -57,7 +57,7 @@ int ff_dovi_configure(DOVIContext *s, AVCodecContext *avctx) AVDOVIDecoderConfigurationRecord *cfg; const AVDOVIRpuDataHeader *hdr = NULL; const AVFrameSideData *sd; - int dv_profile, dv_level, bl_compat_id; + int dv_profile, dv_level, bl_compat_id = -1; size_t cfg_size; uint64_t pps; @@ -94,9 +94,6 @@ int ff_dovi_configure(DOVIContext *s, AVCodecContext *avctx) } switch (dv_profile) { - case 0: /* None */ - bl_compat_id = -1; - break; case 4: /* HEVC with enhancement layer */ case 7: if (s->enable > 0) { @@ -130,9 +127,6 @@ int ff_dovi_configure(DOVIContext *s, AVCodecContext *avctx) avctx->color_primaries == AVCOL_PRI_BT709 && avctx->color_trc == AVCOL_TRC_BT709) { bl_compat_id = 2; - } else { - /* Not a valid colorspace combination */ - bl_compat_id = -1; } } |