[Mplayer-cvslog] CVS: main/libmpdemux audio_in.c,1.6,1.7 demux_asf.c,1.25,1.26 demux_avi.c,1.51,1.52 demux_mov.c,1.82,1.83 demux_mpg.c,1.45,1.46 demux_pva.c,1.3,1.4 demux_real.c,1.33,1.34 demux_viv.c,1.23,1.24 tv.c,1.39,1.40 tvi_v4l.c,1.40,1.41

Michael Niedermayer michaelni at gmx.at
Sat Nov 23 18:41:41 CET 2002


Hi

On Saturday 23 November 2002 18:41, Alex Beregszaszi wrote:
> Hi,
>
> > > > > >  	    case MOV_FOURCC('s','t','t','s'): {
> > > > > > -		int temp=stream_read_dword(demuxer->stream);
> > > > > > +		stream_read_dword(demuxer->stream);
> > > > >
> > > > > 1000L !
> > > > > reverse this file !
> > > >
> > > > ok, but could u explain why it is bad? i cant see where temp is used
> > > > ...
> > >
> > > it's not used but at least my gcc 2.95.4 didn't support declaring
> > > variables after some func calls. so:
> > > {
> > > stream_read_dword(demuxer->stream);
> > > int len = stream_read_dword(demuxer->stream);
> > > }
> > > is bad.
> >
> > ooooooops, thats really 1000l
> > only strange is that gcc 3.2 did compile it
>
> gcc 3.2 is more non-ansi compatible in that way, it supports c++ things
> in c too. (like first was the C++ comment (//) support years ago, and now
> this ;)
>
> probably with -ansi -pedantic it should fail too
yes, but not there ;)

gcc-3.2 -ansi -pedantic -c -g -O4 -march=pentium3 -mcpu=pentium3 -pipe 
-ffast-math -fomit-frame-pointer -Wall -D_REENTRANT -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -I../loader   -o demux_mov.o demux_mov.c

demux_mov.c:3: parse error before '/' token
demux_mov.c:3:35: missing terminating ' character
demux_mov.c:3:35: warning: multi-character character constant
demux_mov.c:5:34: missing terminating ' character
demux_mov.c:5:34: warning: character constant too long
demux_mov.c:17: invalid suffix on floating constant
demux_mov.c:17: invalid suffix on floating constant
In file included from /usr/include/_G_config.h:44,
                 from /usr/include/libio.h:32,
                 from /usr/lib/gcc-lib/i386-linux/3.2.1/include/stdio.h:74,
                 from demux_mov.c:20:
/usr/include/gconv.h:72: parse error before "size_t"
/usr/include/gconv.h:85: parse error before "size_t"
/usr/include/gconv.h:94: parse error before "size_t"
/usr/include/gconv.h:170: parse error before "size_t"
/usr/include/gconv.h:173: parse error before '}' token
/usr/include/gconv.h:173: ISO C forbids data definition with no type or 
storage class
In file included from /usr/include/libio.h:32,
                 from /usr/lib/gcc-lib/i386-linux/3.2.1/include/stdio.h:74,
                 from demux_mov.c:20:
/usr/include/_G_config.h:47: field `__cd' has incomplete type
/usr/include/_G_config.h:50: field `__cd' has incomplete type
/usr/include/_G_config.h:52: confused by earlier errors, bailing out

Michael



More information about the MPlayer-cvslog mailing list