projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be65b41
)
simpler branch structure in init (16 bytes smaller object file)
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 17 Jan 2007 20:14:02 +0000
(20:14 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 17 Jan 2007 20:14:02 +0000
(20:14 +0000)
Originally committed as revision 7575 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavutil/fifo.c
patch
|
blob
|
history
diff --git
a/libavutil/fifo.c
b/libavutil/fifo.c
index fb06765a16677b5b59595bf29e7215b4e9d8dbb0..b86d2629ee8211f5cef38ed01e56a8878800b438 100644
(file)
--- 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;
}