aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vvc
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-01-26 19:20:48 -0300
committerJames Almer <jamrial@gmail.com>2024-01-26 19:20:48 -0300
commiteb4584f994fb9bcfe2a305dada99f8dd5805aae0 (patch)
treefd1dd5c22e7859278efd4fa6fa3b395267ce4298 /libavcodec/vvc
parent763e31a8d3e3def53fc22828e75df54127e9487e (diff)
downloadffmpeg-eb4584f994fb9bcfe2a305dada99f8dd5805aae0.tar.gz
avcodec/vvc_ps: remove duplicated enum
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/vvc')
-rw-r--r--libavcodec/vvc/vvc_ps.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/libavcodec/vvc/vvc_ps.c b/libavcodec/vvc/vvc_ps.c
index c2afc0ac93..2cf156b323 100644
--- a/libavcodec/vvc/vvc_ps.c
+++ b/libavcodec/vvc/vvc_ps.c
@@ -800,12 +800,6 @@ void ff_vvc_ps_uninit(VVCParamSets *ps)
ff_refstruct_unref(&ps->pps_list[i]);
}
-enum {
- APS_ALF,
- APS_LMCS,
- APS_SCALING,
-};
-
static void alf_coeff(int16_t *coeff,
const uint8_t *abs, const uint8_t *sign, const int size)
{
@@ -990,13 +984,13 @@ int ff_vvc_decode_aps(VVCParamSets *ps, const CodedBitstreamUnit *unit)
return AVERROR_INVALIDDATA;
switch (aps->aps_params_type) {
- case APS_ALF:
+ case VVC_ASP_TYPE_ALF:
ret = aps_decode_alf(&ps->alf_list[aps->aps_adaptation_parameter_set_id], aps);
break;
- case APS_LMCS:
+ case VVC_ASP_TYPE_LMCS:
ff_refstruct_replace(&ps->lmcs_list[aps->aps_adaptation_parameter_set_id], aps);
break;
- case APS_SCALING:
+ case VVC_ASP_TYPE_SCALING:
ret = aps_decode_scaling(&ps->scaling_list[aps->aps_adaptation_parameter_set_id], aps);
break;
}