]> granicus.if.org Git - libvpx/commitdiff
Fix implicit-fallthrough warnings
authorLinfeng Zhang <linfengz@google.com>
Thu, 22 Mar 2018 17:58:37 +0000 (10:58 -0700)
committerLinfeng Zhang <linfengz@google.com>
Thu, 22 Mar 2018 18:44:05 +0000 (11:44 -0700)
Compiler -- gcc (Debian 7.3.0-5) 7.3.0

Change-Id: Ied91c7ef3d25c3ef44a1f667656176e2709b4f44

vp8/encoder/pickinter.c
vp8/encoder/rdopt.c

index 193762e6bbda38516538a7442e62b51ea6e3db34..1bb54fc2b14d4f2e5c18481b632a50da37e0a103 100644 (file)
@@ -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:
 
index 2951ca4fd7af085d927642355f587ea3a3a77195..b4182c5cd5c1f954b533da0ff05383c27a485e5f 100644 (file)
@@ -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: