[MPlayer-dev-eng] demux_mov fix for OSX 10.4

Steven M. Schultz sms at 2BSD.COM
Mon May 9 05:50:48 CEST 2005


Hi -

	The Quicktime headers have changed slightly from 10.3.x to 10.4
	with this result:

cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -O4   -faltivec -pipe -ffast-math -fomit-frame-pointer -mdynamic-no-pic -falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I.. -I../loader   -I../libavcodec -I../libavformat    -o demux_mov.o demux_mov.c
demux_mov.c: In function 'lschunks':
demux_mov.c:535: warning: pointer targets in passing argument 2 of 'stream_read' differ in signedness
demux_mov.c:652: warning: pointer targets in passing argument 2 of 'stream_read' differ in signedness
demux_mov.c:1095: error: 'ImageDescription' undeclared (first use in this function)
demux_mov.c:1095: error: (Each undeclared identifier is reported only once
demux_mov.c:1095: error: for each function it appears in.)
demux_mov.c:1096: warning: assignment makes pointer from integer without a cast
demux_mov.c:1097: error: invalid type argument of '->'
demux_mov.c:1099: error: invalid type argument of '->'
demux_mov.c:1100: error: invalid type argument of '->'
demux_mov.c:1101: error: invalid type argument of '->'
demux_mov.c:1102: error: invalid type argument of '->'
demux_mov.c:1103: error: invalid type argument of '->'
demux_mov.c:1104: error: invalid type argument of '->'
demux_mov.c:1105: error: invalid type argument of '->'
demux_mov.c:1106: error: invalid type argument of '->'
demux_mov.c:1107: error: invalid type argument of '->'
demux_mov.c:1108: error: invalid type argument of '->'
demux_mov.c:1109: error: invalid type argument of '->'
demux_mov.c:1110: error: invalid type argument of '->'
demux_mov.c:1111: error: invalid type argument of '->'
demux_mov.c:1112: error: invalid type argument of '->'
demux_mov.c:1113: error: invalid type argument of '->'
demux_mov.c:1114: error: invalid type argument of '->'
demux_mov.c:1115: warning: assignment makes pointer from integer without a cast
demux_mov.c:1462: warning: pointer targets in passing argument 2 of 'stream_read' differ in signedness
demux_mov.c: In function 'mov_read_header':

	The attached patch adds two #include statements in the MACOSX 
	section.

	I have tested this change on both OSX 10.3.9 and 10.4 and it works
	on both systems.

	Cheers,
	Steven Schultz
-------------- next part --------------
--- libmpdemux/demux_mov.c.dist	2005-05-07 22:00:43.000000000 -0700
+++ libmpdemux/demux_mov.c	2005-05-08 16:07:41.000000000 -0700
@@ -37,6 +37,8 @@
 
 #ifdef MACOSX
 #include <QuickTime/QuickTime.h>
+#include <QuickTime/ImageCompression.h>
+#include <QuickTime/ImageCodec.h>
 #else
 #include "../loader/qtx/qtxsdk/components.h"
 #endif


More information about the MPlayer-dev-eng mailing list