diff --git a/vp9/common/vp9_blockd.h b/vp9/common/vp9_blockd.h
index f116c0647d91e4962ba59d4349c52a9a1e962e53..66fc1cb50cdddd63564f561158c8eed2c9dd53ef 100644
--- a/vp9/common/vp9_blockd.h
+++ b/vp9/common/vp9_blockd.h
@@ -578,7 +578,7 @@ static void set_contexts(MACROBLOCKD *xd, struct macroblockd_plane *pd,
   }
 }
 
-static int get_tx_eob(struct segmentation *seg, int segment_id,
+static int get_tx_eob(const struct segmentation *seg, int segment_id,
                       TX_SIZE tx_size) {
   const int eob_max = 16 << (tx_size << 1);
   return vp9_segfeature_active(seg, segment_id, SEG_LVL_SKIP) ? 0 : eob_max;