summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2015-06-27 20:57:51 +0300
committerMarco Nelissen <marcone@google.com>2015-07-28 18:45:02 +0000
commit08e68e85c377e6e193c1b0f4038d1808c861a63c (patch)
treeb524108fd11d352f367dd4bcd2ac07eb6d82c309 /test
parentcc58d3f491ce91be5b5d97d163d530d44ebc645e (diff)
downloadandroid_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.c1
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;