summaryrefslogtreecommitdiff
path: root/examples/vpx_temporal_svc_encoder.c
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2021-11-02 17:19:10 -0700
committerJames Zern <jzern@google.com>2021-11-02 17:21:56 -0700
commitdd10ac8f69c1bc77fc69cd10de51092d07fbebb5 (patch)
tree8f1e0caf276c856beefbbfbaa4ba296b5b51b84b /examples/vpx_temporal_svc_encoder.c
parent340f60524ffa35c7324c54fe404d84cc1a1ac402 (diff)
downloadlibvpx-dd10ac8f69c1bc77fc69cd10de51092d07fbebb5.tar
libvpx-dd10ac8f69c1bc77fc69cd10de51092d07fbebb5.tar.gz
libvpx-dd10ac8f69c1bc77fc69cd10de51092d07fbebb5.tar.bz2
libvpx-dd10ac8f69c1bc77fc69cd10de51092d07fbebb5.zip
tools_common.h: add VPX_TOOLS_FORMAT_PRINTF
and use it to set the format attribute for printf like functions. this allows the examples to be built with -Wformat-nonliteral without producing warnings. Bug: webm:1744 Change-Id: I26b4c41c9a42790053b1ae0e4a678af8f2cd1d82 Fixed: webm:1744
Diffstat (limited to 'examples/vpx_temporal_svc_encoder.c')
-rw-r--r--examples/vpx_temporal_svc_encoder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/vpx_temporal_svc_encoder.c b/examples/vpx_temporal_svc_encoder.c
index ad3e79c71..47f30751e 100644
--- a/examples/vpx_temporal_svc_encoder.c
+++ b/examples/vpx_temporal_svc_encoder.c
@@ -687,14 +687,14 @@ int main(int argc, char **argv) {
&raw,
bit_depth == VPX_BITS_8 ? VPX_IMG_FMT_I420 : VPX_IMG_FMT_I42016,
width, height, 32)) {
- die("Failed to allocate image", width, height);
+ die("Failed to allocate image (%dx%d)", width, height);
}
}
#else
// Y4M reader has its own allocation.
if (input_ctx.file_type != FILE_TYPE_Y4M) {
if (!vpx_img_alloc(&raw, VPX_IMG_FMT_I420, width, height, 32)) {
- die("Failed to allocate image", width, height);
+ die("Failed to allocate image (%dx%d)", width, height);
}
}
#endif // CONFIG_VP9_HIGHBITDEPTH