[MPlayer-dev-eng] [PATCH] demux_real.c compile error with gcc 2.95.3
Steven M. Schultz
sms at 2BSD.COM
Thu Jan 29 23:54:31 CET 2004
There's an apparent gcc 3.x'ism that 2.95.3 fails on:
cc -c -O4 -march=i686 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer
-D_THREAD_SAFE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE64_SOURCE -I../loader -o demux_real.o demux_real.c
demux_real.c: In function `demux_real_fill_buffer':
demux_real.c:604: syntax error before `*'
demux_real.c:605: `dp' undeclared (first use in this function)
demux_real.c:605: (Each undeclared identifier is reported only once
demux_real.c:605: for each function it appears in.)
gmake: *** [demux_real.o] Error 1
Trivial patch attached.
Cheers,
Steven Schultz
-------------- next part --------------
--- demux_real.c.dist Thu Jan 29 14:41:00 2004
+++ demux_real.c Thu Jan 29 14:47:29 2004
@@ -515,6 +515,7 @@
int flags;
int version;
int reserved;
+ demux_packet_t *dp;
while(1){
@@ -601,7 +602,7 @@
free(sub_packet_lengths);
return 1;
}
- demux_packet_t *dp = new_demux_packet(len);
+ dp = new_demux_packet(len);
stream_read(demuxer->stream, dp->buffer, len);
#ifdef CRACK_MATRIX
mp_msg(MSGT_DEMUX, MSGL_V,"*** audio block len=%d\n",len);
More information about the MPlayer-dev-eng
mailing list