diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-01-17 20:06:38 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-01-17 20:06:38 +0000 |
commit | 0726982cdb974dc026aebafb2db510283a166201 (patch) | |
tree | a0459507146667b3c30b9df16a8741d0a6d0b72a /libavutil/fifo.c | |
parent | 96e39edc59ca87793c6c196af7d02778e644ad62 (diff) | |
download | ffmpeg-0726982cdb974dc026aebafb2db510283a166201.tar.gz |
better to set things to NULL instead of random in case of out of mem
Originally committed as revision 7572 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/fifo.c')
-rw-r--r-- | libavutil/fifo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/fifo.c b/libavutil/fifo.c index 48cd777c62..276eeb7463 100644 --- 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; } |