1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

libavcodec/libxvid: code cleanup (replace magic numbers)

This commit is contained in:
Ramiro Polla 2024-05-30 23:20:07 +02:00
parent 0415bb74c8
commit 01b1f4c9a5

View File

@ -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 |