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; } }