diff fifo.c @ 493:97dd9756349c libavutil

cosmetics (by Bj«Órn Axelsson)
author benoit
date Wed, 09 Apr 2008 11:36:50 +0000
parents 75f096258d14
children b7593ce78422
line wrap: on
line diff
--- a/fifo.c	Wed Apr 09 11:35:16 2008 +0000
+++ b/fifo.c	Wed Apr 09 11:36:50 2008 +0000
@@ -76,17 +76,17 @@
     av_fifo_generic_write(f, (void *)buf, size, NULL);
 }
 
-int av_fifo_generic_write(AVFifoBuffer *f, void *buf, int size, int (*func)(void*, void*, int))
+int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int (*func)(void*, void*, int))
 {
     int total = size;
     do {
         int len = FFMIN(f->end - f->wptr, size);
         if(func) {
-            if(func(buf, f->wptr, len) <= 0)
+            if(func(src, f->wptr, len) <= 0)
                 break;
         } else {
-        memcpy(f->wptr, buf, len);
-            buf = (uint8_t*)buf + len;
+            memcpy(f->wptr, src, len);
+            src = (uint8_t*)src + len;
         }
         f->wptr += len;
         if (f->wptr >= f->end)