From: Linfeng Zhang Date: Thu, 22 Mar 2018 17:58:37 +0000 (-0700) Subject: Fix implicit-fallthrough warnings X-Git-Tag: v1.8.0~782^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=920f4ab8f89057451b8e4a7359da94bdcdcec7e5;p=libvpx Fix implicit-fallthrough warnings Compiler -- gcc (Debian 7.3.0-5) 7.3.0 Change-Id: Ied91c7ef3d25c3ef44a1f667656176e2709b4f44 --- diff --git a/vp8/encoder/pickinter.c b/vp8/encoder/pickinter.c index 193762e6b..1bb54fc2b 100644 --- a/vp8/encoder/pickinter.c +++ b/vp8/encoder/pickinter.c @@ -1068,10 +1068,12 @@ void vp8_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset, rate2 += vp8_mv_bit_cost(&mode_mv[NEWMV], &best_ref_mv, cpi->mb.mvcost, 128); } + // fall through case NEARESTMV: case NEARMV: if (mode_mv[this_mode].as_int == 0) continue; + // fall through case ZEROMV: diff --git a/vp8/encoder/rdopt.c b/vp8/encoder/rdopt.c index 2951ca4fd..b4182c5cd 100644 --- a/vp8/encoder/rdopt.c +++ b/vp8/encoder/rdopt.c @@ -2135,6 +2135,7 @@ void vp8_rd_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset, rd.rate2 += vp8_mv_bit_cost(&mode_mv[NEWMV], &best_ref_mv, x->mvcost, 96); } + // fall through case NEARESTMV: case NEARMV: @@ -2151,6 +2152,7 @@ void vp8_rd_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset, (mode_mv[this_mode].as_int == 0)) { continue; } + // fall through case ZEROMV: