From: James Zern Date: Sat, 25 Feb 2023 03:25:39 +0000 (-0800) Subject: tools_common,VpxInterface: fix interface fn ptr proto X-Git-Tag: accepted/tizen/7.0/unified/20240521.012539~1^2~302^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b2d3d5e4242f63e0f3cb673dac245b739c4423d;p=platform%2Fupstream%2Flibvpx.git 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 --- diff --git a/tools_common.h b/tools_common.h index b9cfb9c..3a26641 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);