From 920f4ab8f89057451b8e4a7359da94bdcdcec7e5 Mon Sep 17 00:00:00 2001 From: Linfeng Zhang Date: Thu, 22 Mar 2018 10:58:37 -0700 Subject: [PATCH] Fix implicit-fallthrough warnings Compiler -- gcc (Debian 7.3.0-5) 7.3.0 Change-Id: Ied91c7ef3d25c3ef44a1f667656176e2709b4f44 --- vp8/encoder/pickinter.c | 2 ++ vp8/encoder/rdopt.c | 2 ++ 2 files changed, 4 insertions(+) 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: -- 2.40.0