diff fifo.c @ 229:3f5c648b82c4 libavutil

simpler branch structure in init (16 bytes smaller object file)
author michael
date Wed, 17 Jan 2007 20:14:02 +0000
parents a9a6ed6ec73d
children 4c85ac99ab37
line wrap: on
line diff
--- a/fifo.c	Wed Jan 17 20:12:12 2007 +0000
+++ b/fifo.c	Wed Jan 17 20:14:02 2007 +0000
@@ -26,9 +26,9 @@
 {
     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;
 }