History

avcodec/dovi_rpuenc: Initialize bl_compat_id

Fixes: CID1596607 Uninitialized scalar variable

Michael Niedermayer committed 2 years ago

Commit c7075cd1 parent 2e162851 file · +1 −7Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/dovi_rpuenc.c+1−7
@@ -57,7 +57,7 @@ int ff_dovi_configure(DOVIContext *s, AVCodecContext *avctx) · 56 unmodified lines
5757 AVDOVIDecoderConfigurationRecord *cfg;
5858 const AVDOVIRpuDataHeader *hdr = NULL;
5959 const AVFrameSideData *sd;
60− int dv_profile, dv_level, bl_compat_id;
60+ int dv_profile, dv_level, bl_compat_id = -1;
6161 size_t cfg_size;
6262 uint64_t pps;
6363
@@ -94,9 +94,6 @@ int ff_dovi_configure(DOVIContext *s, AVCodecContext *avctx) · 30 unmodified lines
9494 }
9595
9696 switch (dv_profile) {
97− case 0: /* None */
98− bl_compat_id = -1;
99− break;
10097 case 4: /* HEVC with enhancement layer */
10198 case 7:
10299 if (s->enable > 0) {
@@ -130,9 +127,6 @@ int ff_dovi_configure(DOVIContext *s, AVCodecContext *avctx) · 27 unmodified lines
130127 avctx->color_primaries == AVCOL_PRI_BT709 &&
131128 avctx->color_trc == AVCOL_TRC_BT709) {
132129 bl_compat_id = 2;
133− } else {
134− /* Not a valid colorspace combination */
135− bl_compat_id = -1;
136130 }
137131 }
138132

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t