Make an int to int16 conversion explicit in temporal_filter.c
Change-Id: I98d7abab70c4b9489525b5fba28501748cca9146
diff --git a/av1/encoder/temporal_filter.c b/av1/encoder/temporal_filter.c
index 385f027..c81eef0 100644
--- a/av1/encoder/temporal_filter.c
+++ b/av1/encoder/temporal_filter.c
@@ -61,7 +61,9 @@
}
if (use_32x32) {
- const MV mv = { mv_row, mv_col };
+ assert(mv_row >= INT16_MIN && mv_row <= INT16_MAX && mv_col >= INT16_MIN &&
+ mv_col <= INT16_MAX);
+ const MV mv = { (int16_t)mv_row, (int16_t)mv_col };
av1_build_inter_predictor(y_mb_ptr, stride, &pred[0], BW, &mv, scale, BW,
BH, &conv_params, interp_filters, &warp_types, x,