summaryrefslogtreecommitdiff
path: root/libavutil/fifo.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-01-17 20:14:02 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-01-17 20:14:02 +0000
commit4497712f091690948c7ddaf8ffd01202dfef9931 (patch)
tree5f67e12daddde3af563bfcc985f8baebb440ec2f /libavutil/fifo.c
parentbe65b41f907d54b6d339791ba377779e6aaa8f77 (diff)
downloadffmpeg-4497712f091690948c7ddaf8ffd01202dfef9931.tar.gz
simpler branch structure in init (16 bytes smaller object file)
Originally committed as revision 7575 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/fifo.c')
-rw-r--r--libavutil/fifo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/fifo.c b/libavutil/fifo.c
index fb06765a16..b86d2629ee 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;
}