avcodec/libxvid: Add av_fallthrough

Reviewed-by: Ramiro Polla <ramiro.polla@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2026-05-03 18:23:03 +02:00
parent dc12dd82a1
commit a9b97d070e
+4
View File
@@ -407,12 +407,14 @@ static av_cold int xvid_encode_init(AVCodecContext *avctx)
case 5:
x->me_flags |= XVID_ME_EXTSEARCH16 |
XVID_ME_EXTSEARCH8;
av_fallthrough;
case 4:
case 3:
x->me_flags |= XVID_ME_ADVANCEDDIAMOND8 |
XVID_ME_HALFPELREFINE8 |
XVID_ME_CHROMA_PVOP |
XVID_ME_CHROMA_BVOP;
av_fallthrough;
case 2:
case 1:
x->me_flags |= XVID_ME_ADVANCEDDIAMOND16 |
@@ -427,11 +429,13 @@ static av_cold int xvid_encode_init(AVCodecContext *avctx)
XVID_ME_QUARTERPELREFINE8_RD |
XVID_ME_EXTSEARCH_RD |
XVID_ME_CHECKPREDICTION_RD;
av_fallthrough;
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 |
XVID_ME_QUARTERPELREFINE16_RD;
av_fallthrough;
default:
break;
}