[MPlayer-cvslog] r38198 - trunk/loader/win32.c

komh subversion at mplayerhq.hu
Sun Oct 11 09:36:38 EEST 2020


Author: komh
Date: Sun Oct 11 09:36:37 2020
New Revision: 38198

Log:
loader: fix compilation

-----
loader/win32.c: In function 'mreq_private':
loader/win32.c:354:28: error: implicit declaration of function 'av_malloc'; did you mean 'valloc'? [-Werror=implicit-function-declaration]
  354 |     alloc_header* header = av_malloc(nsize);
      |                            ^~~~~~~~~
      |                            valloc
loader/win32.c:354:28: warning: initialization of 'alloc_header *' {aka 'struct alloc_header_t *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
loader/win32.c: In function 'my_release':
loader/win32.c:439:5: error: implicit declaration of function 'av_free' [-Werror=implicit-function-declaration]
  439 |     av_free(header);
      |     ^~~~~~~
-----

Modified:
   trunk/loader/win32.c

Modified: trunk/loader/win32.c
==============================================================================
--- trunk/loader/win32.c	Sun Aug 30 20:44:21 2020	(r38197)
+++ trunk/loader/win32.c	Sun Oct 11 09:36:37 2020	(r38198)
@@ -82,6 +82,7 @@ for DLL to know too much about its envir
 #include "osdep/mmap.h"
 #endif
 #include "osdep/mmap_anon.h"
+#include "libavutil/mem.h"
 #include "libavutil/avstring.h"
 #include "cpudetect.h"
 


More information about the MPlayer-cvslog mailing list