OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96e39ed
)
better to set things to NULL instead of random in case of out of mem
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 17 Jan 2007 20:06:38 +0000
(20:06 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 17 Jan 2007 20:06:38 +0000
(20:06 +0000)
Originally committed as revision 7572 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavutil/fifo.c
patch
|
blob
|
history
diff --git
a/libavutil/fifo.c
b/libavutil/fifo.c
index
48cd777
..
276eeb7
100644
(file)
--- a/
libavutil/fifo.c
+++ b/
libavutil/fifo.c
@@
-24,11
+24,11
@@
int av_fifo_init(AVFifoBuffer *f, int size)
{
+ f->wptr = f->rptr =
f->buffer = av_malloc(size);
if (!f->buffer)
return -1;
f->end = f->buffer + size;
- f->wptr = f->rptr = f->buffer;
return 0;
}