shithub: libvpx

Download patch

ref: 920f4ab8f89057451b8e4a7359da94bdcdcec7e5
parent: c101a5f5c4cf01dd35af393a285f8dce704439fb
author: Linfeng Zhang <linfengz@google.com>
date: Thu Mar 22 06:58:37 EDT 2018

Fix implicit-fallthrough warnings

Compiler -- gcc (Debian 7.3.0-5) 7.3.0

Change-Id: Ied91c7ef3d25c3ef44a1f667656176e2709b4f44

--- a/vp8/encoder/pickinter.c
+++ b/vp8/encoder/pickinter.c
@@ -1068,10 +1068,12 @@
         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:
 
--- a/vp8/encoder/rdopt.c
+++ b/vp8/encoder/rdopt.c
@@ -2135,6 +2135,7 @@
         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 @@
             (mode_mv[this_mode].as_int == 0)) {
           continue;
         }
+        // fall through
 
       case ZEROMV: