[vlc-devel] [PATCH] avcodec: fix missing include

Tristan Matthews le.businessman at gmail.com
Sun Sep 14 19:31:12 CEST 2014


Needed for av_freep
---
 modules/codec/avcodec/avcommon_compat.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/codec/avcodec/avcommon_compat.h b/modules/codec/avcodec/avcommon_compat.h
index d6293d7..fb2396f 100644
--- a/modules/codec/avcodec/avcommon_compat.h
+++ b/modules/codec/avcodec/avcommon_compat.h
@@ -37,6 +37,9 @@
       (LIBAVCODEC_VERSION_MICRO >= 100 && LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( a, d, e ) ) )
 
 # if (LIBAVCODEC_VERSION_INT < AV_VERSION_INT(55, 52, 0))
+
+#include <libavutil/mem.h>
+
 static inline void avcodec_free_context( AVCodecContext **ctx )
 {
     av_freep( ctx );
-- 
1.9.1




More information about the vlc-devel mailing list