ref: 73caef05006d71f13b6866fa506ab6c7f146f0d8
parent: 7af927e324d254b8dab06982fe68a849e9824c8c
author: Adrian Grange <[email protected]>
date: Mon Dec 1 08:58:44 EST 2014
Use memset for initialization to 0 Change-Id: I714ca22b5d51016bf8b035cf457616c707257641
--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -3217,11 +3217,8 @@
vp9_clear_system_state();
#if CONFIG_INTERNAL_STATS
- {
- int i;
- for (i = 0; i < MAX_MODES; ++i)
- cpi->mode_chosen_counts[i] = 0;
- }
+ vpx_memset(cpi->mode_chosen_counts, 0,
+ MAX_MODES * sizeof(*cpi->mode_chosen_counts));
#endif
if (cpi->sf.recode_loop == DISALLOW_RECODE) {