Commit 8637a3fe authored by michael's avatar michael

better to set things to NULL instead of random in case of out of mem


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7572 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 99592302
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment