diff options
author | Martin Storsjo <martin@martin.st> | 2015-06-27 20:57:51 +0300 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2015-07-28 18:45:02 +0000 |
commit | 08e68e85c377e6e193c1b0f4038d1808c861a63c (patch) | |
tree | b524108fd11d352f367dd4bcd2ac07eb6d82c309 /test | |
parent | cc58d3f491ce91be5b5d97d163d530d44ebc645e (diff) | |
download | android_external_libavc-08e68e85c377e6e193c1b0f4038d1808c861a63c.tar.gz android_external_libavc-08e68e85c377e6e193c1b0f4038d1808c861a63c.tar.bz2 android_external_libavc-08e68e85c377e6e193c1b0f4038d1808c861a63c.zip |
avcenc: Initialize avg_time
This fixes valgrind warnings when encoding with b-frames.
Change-Id: I922314e5e6fd09db3ba60e60863e2611309886d5
Diffstat (limited to 'test')
-rw-r--r-- | test/encoder/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/encoder/main.c b/test/encoder/main.c index 3302111..3510e2b 100644 --- a/test/encoder/main.c +++ b/test/encoder/main.c @@ -918,6 +918,7 @@ void init_default_params(app_ctxt_t *ps_app_ctxt) ps_app_ctxt->u4_pic_info_size = 0; ps_app_ctxt->u4_start_frm = DEFAULT_START_FRM; ps_app_ctxt->u4_max_num_frms = DEFAULT_NUM_FRMS; + ps_app_ctxt->avg_time = 0; ps_app_ctxt->u4_total_bytes = 0; ps_app_ctxt->u4_pics_cnt = 0; ps_app_ctxt->e_inp_color_fmt = DEFAULT_INP_COLOR_FMT; |