From 3898eed890f660d15d314964f7cbbbada3201e54 Mon Sep 17 00:00:00 2001 From: Reimar Döffinger Date: Mon, 9 Mar 2009 17:47:47 +0000 Subject: 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 --- libavutil/fifo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavutil/fifo.c') 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 { -- cgit v1.2.3