libavcodec/libxvid: code cleanup (replace magic numbers)
This commit is contained in:
parent
0415bb74c8
commit
01b1f4c9a5
@ -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 |
|
||||
|
Loading…
Reference in New Issue
Block a user