diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2024-05-30 23:20:07 +0200 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2024-06-05 19:39:35 +0200 |
commit | 01b1f4c9a5d1b7a2421f9bd6d600bcbe2519564a (patch) | |
tree | 03381fac78cc2aed54568e5929d6135e8de2df7c /libavcodec | |
parent | 0415bb74c81ab0019e48bd2989ddf48d66918e9e (diff) | |
download | ffmpeg-01b1f4c9a5d1b7a2421f9bd6d600bcbe2519564a.tar.gz |
libavcodec/libxvid: code cleanup (replace magic numbers)
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/libxvid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/libxvid.c b/libavcodec/libxvid.c index b9ac39429d..a490f16b3f 100644 --- a/libavcodec/libxvid.c +++ b/libavcodec/libxvid.c @@ -422,13 +422,13 @@ static av_cold int xvid_encode_init(AVCodecContext *avctx) /* Decide how we should decide blocks */ switch (avctx->mb_decision) { - case 2: + case FF_MB_DECISION_RD: x->vop_flags |= XVID_VOP_MODEDECISION_RD; x->me_flags |= XVID_ME_HALFPELREFINE8_RD | XVID_ME_QUARTERPELREFINE8_RD | XVID_ME_EXTSEARCH_RD | XVID_ME_CHECKPREDICTION_RD; - case 1: + case FF_MB_DECISION_BITS: if (!(x->vop_flags & XVID_VOP_MODEDECISION_RD)) x->vop_flags |= XVID_VOP_FAST_MODEDECISION_RD; x->me_flags |= XVID_ME_HALFPELREFINE16_RD | |