summaryrefslogtreecommitdiff
path: root/examples/vp9_spatial_svc_encoder.c
diff options
context:
space:
mode:
authorJohann <johannkoenig@google.com>2018-03-13 17:37:28 -0700
committerJohann <johannkoenig@google.com>2018-03-13 17:58:24 -0700
commitb0d57f682dfa9a6db2e458daab1722ebf5bcec02 (patch)
treee822253e195a9be85c1b8f6acc58ca78ca60752d /examples/vp9_spatial_svc_encoder.c
parent6f9163db9518fb7af6d35960c6f365c92a749807 (diff)
downloadlibvpx-b0d57f682dfa9a6db2e458daab1722ebf5bcec02.tar
libvpx-b0d57f682dfa9a6db2e458daab1722ebf5bcec02.tar.gz
libvpx-b0d57f682dfa9a6db2e458daab1722ebf5bcec02.tar.bz2
libvpx-b0d57f682dfa9a6db2e458daab1722ebf5bcec02.zip
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
Diffstat (limited to 'examples/vp9_spatial_svc_encoder.c')
-rw-r--r--examples/vp9_spatial_svc_encoder.c4
1 files changed, 1 insertions, 3 deletions
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;
}