summaryrefslogtreecommitdiff
path: root/tools_common.h
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2023-02-24 19:25:39 -0800
committerJames Zern <jzern@google.com>2023-02-24 19:25:39 -0800
commit5b2d3d5e4242f63e0f3cb673dac245b739c4423d (patch)
treefc88432dec3a8e5fa5cba19fca9fc0f9deba3c15 /tools_common.h
parent111068923b4ca778a680330d00161d7ee93f61e1 (diff)
downloadlibvpx-5b2d3d5e4242f63e0f3cb673dac245b739c4423d.tar
libvpx-5b2d3d5e4242f63e0f3cb673dac245b739c4423d.tar.gz
libvpx-5b2d3d5e4242f63e0f3cb673dac245b739c4423d.tar.bz2
libvpx-5b2d3d5e4242f63e0f3cb673dac245b739c4423d.zip
tools_common,VpxInterface: fix interface fn ptr proto
Use (void) to indicate an empty parameter list and match the declaration of vpx_codec_vp[89]_[cd]x. This fixes a cfi sanitizer error. Change-Id: I190f432eea4d1765afffd84c7458ec44d863f90c
Diffstat (limited to 'tools_common.h')
-rw-r--r--tools_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools_common.h b/tools_common.h
index b9cfb9cc8..3a266416e 100644
--- a/tools_common.h
+++ b/tools_common.h
@@ -147,7 +147,7 @@ int read_yuv_frame(struct VpxInputContext *input_ctx, vpx_image_t *yuv_frame);
typedef struct VpxInterface {
const char *const name;
const uint32_t fourcc;
- vpx_codec_iface_t *(*const codec_interface)();
+ vpx_codec_iface_t *(*const codec_interface)(void);
} VpxInterface;
int get_vpx_encoder_count(void);