summaryrefslogtreecommitdiff
path: root/libavutil/fifo.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-03-09 17:47:47 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-03-09 17:47:47 +0000
commit3898eed890f660d15d314964f7cbbbada3201e54 (patch)
treeb98a1f40748de91eeb28040c0e6570581d2ee740 /libavutil/fifo.c
parent60f75ad2458e3613b99e771be8514ca7165284d0 (diff)
Reorder arguments for av_fifo_generic_read to be more logical and
consistent with av_fifo_generic_write. Originally committed as revision 17914 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/fifo.c')
-rw-r--r--libavutil/fifo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/fifo.c b/libavutil/fifo.c
index 9a9a139f3b..52ace0e22c 100644
--- a/libavutil/fifo.c
+++ b/libavutil/fifo.c
@@ -63,7 +63,7 @@ int av_fifo_realloc2(AVFifoBuffer *f, unsigned int new_size) {
if (!f2)
return -1;
- av_fifo_generic_read(f, len, NULL, f2->buffer);
+ av_fifo_generic_read(f, f2->buffer, len, NULL);
f2->wptr += len;
f2->wndx += len;
av_free(f->buffer);
@@ -96,7 +96,7 @@ int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int (*func)(void
}
-int av_fifo_generic_read(AVFifoBuffer *f, int buf_size, void (*func)(void*, void*, int), void* dest)
+int av_fifo_generic_read(AVFifoBuffer *f, void *dest, int buf_size, void (*func)(void*, void*, int))
{
// Read memory barrier needed for SMP here in theory
do {