Fixes: CID1596607 Uninitialized scalar variable
Unified · Split
| @@ -57,7 +57,7 @@ int ff_dovi_configure(DOVIContext *s, AVCodecContext *avctx) · 56 unmodified lines | ||
| 57 | 57 | AVDOVIDecoderConfigurationRecord *cfg; |
| 58 | 58 | const AVDOVIRpuDataHeader *hdr = NULL; |
| 59 | 59 | const AVFrameSideData *sd; |
| 60 | − int dv_profile, dv_level, bl_compat_id; | |
| 60 | + int dv_profile, dv_level, bl_compat_id = -1; | |
| 61 | 61 | size_t cfg_size; |
| 62 | 62 | uint64_t pps; |
| 63 | 63 | |
| @@ -94,9 +94,6 @@ int ff_dovi_configure(DOVIContext *s, AVCodecContext *avctx) · 30 unmodified lines | ||
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | switch (dv_profile) { |
| 97 | − case 0: /* None */ | |
| 98 | − bl_compat_id = -1; | |
| 99 | − break; | |
| 100 | 97 | case 4: /* HEVC with enhancement layer */ |
| 101 | 98 | case 7: |
| 102 | 99 | if (s->enable > 0) { |
| @@ -130,9 +127,6 @@ int ff_dovi_configure(DOVIContext *s, AVCodecContext *avctx) · 27 unmodified lines | ||
| 130 | 127 | avctx->color_primaries == AVCOL_PRI_BT709 && |
| 131 | 128 | avctx->color_trc == AVCOL_TRC_BT709) { |
| 132 | 129 | bl_compat_id = 2; |
| 133 | − } else { | |
| 134 | − /* Not a valid colorspace combination */ | |
| 135 | − bl_compat_id = -1; | |
| 136 | 130 | } |
| 137 | 131 | } |
| 138 | 132 | |