aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpdemux/demuxer.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux/demuxer.h')
-rw-r--r--libmpdemux/demuxer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/demuxer.h b/libmpdemux/demuxer.h
index 6c9eb2b57d..8efd54e826 100644
--- a/libmpdemux/demuxer.h
+++ b/libmpdemux/demuxer.h
@@ -275,7 +275,7 @@ inline static void free_demux_packet(demux_packet_t* dp){
#define SIZE_MAX ((size_t)-1)
#endif
-static void *realloc_struct(void *ptr, size_t nmemb, size_t size) {
+inline static void *realloc_struct(void *ptr, size_t nmemb, size_t size) {
if (nmemb > SIZE_MAX / size) {
free(ptr);
return NULL;