[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

Gábor Lénárt lgb at lgb.hu
Sat Nov 23 18:08:23 CET 2002


On Sat, Nov 23, 2002 at 06:05:14PM +0100, Michael Niedermayer wrote:
> > >  	    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 ...

Sure. Because in C, you must declare variable at the BEGINING of a block
before any other constructions, like calling a functions ... It's NOT C++,
in C you CAN'T declare a variable anywhere !!!!!
Otherwise it won't compile and eg gcc gives parse error ...


- Gábor (larta'H)



More information about the MPlayer-cvslog mailing list