[Ffmpeg-devel] printf("Buffer Underflow\n");
Rich Felker
dalias
Fri Feb 24 17:40:29 CET 2006
On Fri, Feb 24, 2006 at 03:16:53PM +0200, Oded Shimon wrote:
> On Fri, Feb 24, 2006 at 02:12:49PM +0100, Michael Niedermayer wrote:
> > Hi
> >
> > On Fri, Feb 24, 2006 at 04:47:03AM -0800, Brian Molnar wrote:
> > > Hey Guys,
> > >
> > > I went ahead and rewrote FFServer to get rid of a lot
> > > of unnecessary code:
> > >
> > > void main()
> > > {
> > > while(1) {
> > > printf("Buffer Underflow\n");
> > > }
> > > }
> > >
> > > I figure this way it'll have a smaller footprint while
> > > maintining the same functionality.
> >
> > this is not a unified diff!
> > this lacks some #inlcude
> > the indention doesnt match our recommanded style
> > and i somehow doubt it will pass the regression tests
>
> Also, is 'void main' legal C?
No. And if there are systems that pass return value on the stack, it
will cause a crash in crt0.o/_start code. :)
Rich
More information about the ffmpeg-devel
mailing list