Browse code

Hack libmpcodecs to make it buildable.

Michael Niedermayer authored on 2011/01/14 12:59:35
Showing 4 changed files
... ...
@@ -27,7 +27,7 @@
27 27
 #include <stdarg.h>
28 28
 
29 29
 //#include "sub/font_load.h"
30
-#include "libmpcodecs/img_format.h"
30
+#include "../img_format.h"
31 31
 //#include "vidix/vidix.h"
32 32
 
33 33
 #define VO_EVENT_EXPOSE 1
... ...
@@ -26,11 +26,11 @@
26 26
 #include <malloc.h>
27 27
 #endif
28 28
 
29
-#include "libmpcodecs/img_format.h"
30
-#include "libmpcodecs/mp_image.h"
29
+#include "img_format.h"
30
+#include "mp_image.h"
31 31
 
32 32
 #include "libvo/fastmemcpy.h"
33
-#include "libavutil/mem.h"
33
+//#include "libavutil/mem.h"
34 34
 
35 35
 void mp_image_alloc_planes(mp_image_t *mpi) {
36 36
   // IF09 - allocate space for 4. plane delta info - unused
... ...
@@ -22,7 +22,17 @@
22 22
 #include <stdio.h>
23 23
 #include <stdlib.h>
24 24
 #include <string.h>
25
+#undef printf //FIXME
26
+#undef fprintf //FIXME
25 27
 #include "mp_msg.h"
28
+#include "libavutil/avutil.h"
29
+#include "libavutil/avassert.h"
30
+#undef realloc
31
+#undef malloc
32
+#undef free
33
+#undef rand
34
+#undef srand
35
+#undef printf
26 36
 
27 37
 //--------- codec's requirements (filled by the codec/vf) ---------
28 38
 
... ...
@@ -19,11 +19,11 @@
19 19
 #ifndef MPLAYER_VF_H
20 20
 #define MPLAYER_VF_H
21 21
 
22
-#include "m_option.h"
22
+//#include "m_option.h"
23 23
 #include "mp_image.h"
24 24
 
25
-extern m_obj_settings_t* vf_settings;
26
-extern const m_obj_list_t vf_obj_list;
25
+//extern m_obj_settings_t* vf_settings;
26
+//extern const m_obj_list_t vf_obj_list;
27 27
 
28 28
 struct vf_instance;
29 29
 struct vf_priv_s;