diff options
author | Johann Koenig <johannkoenig@google.com> | 2016-06-16 22:29:04 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-06-16 22:29:04 +0000 |
commit | f5713fefa688ffcef68ea83a166f93cd25b2d4bc (patch) | |
tree | 2852b422b269eb0d5bf62ee724cba0ec5a73270b /vp8 | |
parent | 73ae3cdeefef682d97f435f19830fb6fedccb17e (diff) | |
parent | 3108fbd22987c4a0a15b9b51c6e8c4877df6acda (diff) | |
download | libvpx-f5713fefa688ffcef68ea83a166f93cd25b2d4bc.tar libvpx-f5713fefa688ffcef68ea83a166f93cd25b2d4bc.tar.gz libvpx-f5713fefa688ffcef68ea83a166f93cd25b2d4bc.tar.bz2 libvpx-f5713fefa688ffcef68ea83a166f93cd25b2d4bc.zip |
Merge "vp8 stats file: initialize to 0"
Diffstat (limited to 'vp8')
-rw-r--r-- | vp8/encoder/firstpass.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vp8/encoder/firstpass.c b/vp8/encoder/firstpass.c index 95bb39400..c526a3e89 100644 --- a/vp8/encoder/firstpass.c +++ b/vp8/encoder/firstpass.c @@ -18,6 +18,7 @@ #include "onyx_int.h" #include "vpx_dsp/variance.h" #include "encodeintra.h" +#include "vp8/common/common.h" #include "vp8/common/setupintrarecon.h" #include "vp8/common/systemdependent.h" #include "mcomp.h" @@ -2417,7 +2418,7 @@ void vp8_second_pass(VP8_COMP *cpi) int tmp_q; int frames_left = (int)(cpi->twopass.total_stats.count - cpi->common.current_video_frame); - FIRSTPASS_STATS this_frame = {0}; + FIRSTPASS_STATS this_frame; FIRSTPASS_STATS this_frame_copy; double this_frame_intra_error; @@ -2425,6 +2426,8 @@ void vp8_second_pass(VP8_COMP *cpi) int overhead_bits; + vp8_zero(this_frame); + if (!cpi->twopass.stats_in) { return ; |