tools_common,VpxInterface: fix interface fn ptr proto
authorJames Zern <jzern@google.com>
Sat, 25 Feb 2023 03:25:39 +0000 (19:25 -0800)
committerJames Zern <jzern@google.com>
Sat, 25 Feb 2023 03:25:39 +0000 (19:25 -0800)
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

tools_common.h

index b9cfb9c..3a26641 100644 (file)
@@ -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);