From 6fe158d7e74d7fc6b23da1605be9aa7bbb187859 Mon Sep 17 00:00:00 2001 From: zuxy Date: Tue, 20 Apr 2010 04:33:00 +0000 Subject: Replace memalign(x) (x > 8) by av_malloc() to prevent crashes on systems lacking memalign(), e.g. Win32. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31045 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libmpcodecs/vf.c') diff --git a/libmpcodecs/vf.c b/libmpcodecs/vf.c index 02b0f1a8b1..0760b09602 100644 --- a/libmpcodecs/vf.c +++ b/libmpcodecs/vf.c @@ -40,6 +40,7 @@ #include "vf.h" #include "libvo/fastmemcpy.h" +#include "libavutil/mem.h" extern const vf_info_t vf_info_vo; extern const vf_info_t vf_info_rectangle; @@ -350,7 +351,7 @@ mp_image_t* vf_get_image(vf_instance_t* vf, unsigned int outfmt, int mp_imgtype, if(mpi->flags&MP_IMGFLAG_ALLOCATED){ if(mpi->widthheightplanes[0]); + av_free(mpi->planes[0]); mpi->flags&=~MP_IMGFLAG_ALLOCATED; mp_msg(MSGT_VFILTER,MSGL_V,"vf.c: have to REALLOCATE buffer memory :(\n"); } -- cgit v1.2.3