summaryrefslogtreecommitdiff
path: root/vp9
diff options
context:
space:
mode:
authorAdrian Grange <agrange@google.com>2014-12-01 13:58:44 -0800
committerAdrian Grange <agrange@google.com>2014-12-03 15:22:02 -0800
commit73caef05006d71f13b6866fa506ab6c7f146f0d8 (patch)
tree597cdc0e274855fdf5ca6afe39773185e33b48f1 /vp9
parent7af927e324d254b8dab06982fe68a849e9824c8c (diff)
downloadlibvpx-73caef05006d71f13b6866fa506ab6c7f146f0d8.tar
libvpx-73caef05006d71f13b6866fa506ab6c7f146f0d8.tar.gz
libvpx-73caef05006d71f13b6866fa506ab6c7f146f0d8.tar.bz2
libvpx-73caef05006d71f13b6866fa506ab6c7f146f0d8.zip
Use memset for initialization to 0
Change-Id: I714ca22b5d51016bf8b035cf457616c707257641
Diffstat (limited to 'vp9')
-rw-r--r--vp9/encoder/vp9_encoder.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/vp9/encoder/vp9_encoder.c b/vp9/encoder/vp9_encoder.c
index 28350ef54..ba6ac1dac 100644
--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -3217,11 +3217,8 @@ static void encode_frame_to_data_rate(VP9_COMP *cpi,
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) {