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

michael subversion
Wed Jan 17 21:11:23 CET 2007


Author: michael
Date: Wed Jan 17 21:11:23 2007
New Revision: 7573

Modified:
   trunk/libavutil/fifo.c

Log:
avoid code duplication


Modified: trunk/libavutil/fifo.c
==============================================================================
--- trunk/libavutil/fifo.c	(original)
+++ trunk/libavutil/fifo.c	Wed Jan 17 21:11:23 2007
@@ -99,9 +99,7 @@
             memcpy(dest, f->rptr, len);
             dest = (uint8_t*)dest + len;
         }
-        f->rptr += len;
-        if (f->rptr >= f->end)
-            f->rptr = f->buffer;
+        av_fifo_drain(f, len);
         buf_size -= len;
     }
     return 0;




More information about the ffmpeg-cvslog mailing list