From: Michael Niedermayer Date: Wed, 17 Jan 2007 20:14:02 +0000 (+0000) Subject: simpler branch structure in init (16 bytes smaller object file) X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=4497712f091690948c7ddaf8ffd01202dfef9931;p=ffmpeg simpler branch structure in init (16 bytes smaller object file) Originally committed as revision 7575 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavutil/fifo.c b/libavutil/fifo.c index fb06765a166..b86d2629ee8 100644 --- a/libavutil/fifo.c +++ b/libavutil/fifo.c @@ -26,9 +26,9 @@ int av_fifo_init(AVFifoBuffer *f, int size) { f->wptr = f->rptr = f->buffer = av_malloc(size); + f->end = f->buffer + size; if (!f->buffer) return -1; - f->end = f->buffer + size; return 0; }