From b0d57f682dfa9a6db2e458daab1722ebf5bcec02 Mon Sep 17 00:00:00 2001 From: Johann Date: Tue, 13 Mar 2018 17:37:28 -0700 Subject: spatial svc: remove vpx_svc_get_message Print error messages as they are encountered. This was the default behavior. Removes a static analysis warning regarding the use of strncat: Null pointer argument in call to string length function As this is the only use of strncat in the library, remove it and the associated public function. Change-Id: Id55305c5a4d65f11da88c3a2203ff824200f526f --- examples/vp9_spatial_svc_encoder.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'examples/vp9_spatial_svc_encoder.c') diff --git a/examples/vp9_spatial_svc_encoder.c b/examples/vp9_spatial_svc_encoder.c index 118fdd767..ba25b71ad 100644 --- a/examples/vp9_spatial_svc_encoder.c +++ b/examples/vp9_spatial_svc_encoder.c @@ -646,7 +646,6 @@ int main(int argc, const char **argv) { struct vpx_usec_timer timer; int64_t cx_time = 0; memset(&svc_ctx, 0, sizeof(svc_ctx)); - svc_ctx.log_print = 1; exec_name = argv[0]; parse_command_line(argc, argv, &app_input, &svc_ctx, &enc_cfg); @@ -772,7 +771,6 @@ int main(int argc, const char **argv) { vpx_usec_timer_mark(&timer); cx_time += vpx_usec_timer_elapsed(&timer); - printf("%s", vpx_svc_get_message(&svc_ctx)); fflush(stdout); if (res != VPX_CODEC_OK) { die_codec(&codec, "Failed to encode frame"); @@ -931,7 +929,7 @@ int main(int argc, const char **argv) { 1000000 * (double)frame_cnt / (double)cx_time); vpx_img_free(&raw); // display average size, psnr - printf("%s", vpx_svc_dump_statistics(&svc_ctx)); + vpx_svc_dump_statistics(&svc_ctx); vpx_svc_release(&svc_ctx); return EXIT_SUCCESS; } -- cgit v1.2.3