[Ffmpeg-cvslog] r7572 - trunk/libavutil/fifo.c

michael subversion
Wed Jan 17 21:06:38 CET 2007


Author: michael
Date: Wed Jan 17 21:06:38 2007
New Revision: 7572

Modified:
   trunk/libavutil/fifo.c

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


Modified: trunk/libavutil/fifo.c
==============================================================================
--- trunk/libavutil/fifo.c	(original)
+++ trunk/libavutil/fifo.c	Wed Jan 17 21:06:38 2007
@@ -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;
 }
 




More information about the ffmpeg-cvslog mailing list