[MPlayer-dev-eng] [PATCH] configure & MEMALIGN_HACK

Björn Sandell biorn at dce.chalmers.se
Tue Jan 4 21:10:37 CET 2005


A while a go there was a commit to configure:

$ cvs diff -ur1.942 -r1.943 configure
Index: configure
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.942
retrieving revision 1.943
diff -u -r1.942 -r1.943
--- configure   25 Nov 2004 21:47:58 -0000      1.942
+++ configure   15 Dec 2004 14:37:27 -0000      1.943
@@ -6844,6 +6844,7 @@
 # define memalign(a,b) malloc(b)
+#define MEMALIGN_HACK 1

with the log message

"enable memalign hack for libavcodec when memalign is not present, hopefully the mencoder segfaults on mingw are gone now"

Unfortunately this does evil thing on OpenBSD (and possibly other BSDs
as well):

mplayer in free(): error: modified (chunk-) pointer

MPlayer interrupted by signal 6 in module: uninit_vcodec
- MPlayer crashed. This shouldn't happen.
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
  gcc version. If you think it's MPlayer's fault, please read
  DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
  won't help unless you provide this information when reporting a possible bug.

hence I suggest a patch like the attached.

Björn Sandell           Chalmers University of Technology
IT department    www.ita.chalmers.se   +46 (0)31 772 1000
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.diff
Type: textg/plain
Size: 506 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050104/6ecec135/attachment.bin>

More information about the MPlayer-dev-eng mailing list