aboutsummaryrefslogtreecommitdiffhomepage
path: root/libvo/sub.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/sub.c')
-rw-r--r--libvo/sub.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libvo/sub.c b/libvo/sub.c
index 90dd6c6869..67003cf9a1 100644
--- a/libvo/sub.c
+++ b/libvo/sub.c
@@ -4,6 +4,10 @@
#include <string.h>
#include "config.h"
+#ifdef HAVE_MALLOC_H
+#include <malloc.h>
+#endif
+
#include "mp_msg.h"
#include "video_out.h"
#include "font_load.h"
@@ -434,7 +438,6 @@ inline static void vo_update_text_sub(mp_osd_obj_t* obj,int dxs,int dys){
inline static void vo_update_spudec_sub(mp_osd_obj_t* obj, int dxs, int dys)
{
unsigned int bbox[4];
- int i;
spudec_calc_bbox(vo_spudec, dxs, dys, bbox);
obj->bbox.x1 = bbox[0];
obj->bbox.x2 = bbox[1];