Revision 3898eed8 libavutil/fifo.c

View differences:

libavutil/fifo.c
63 63

  
64 64
        if (!f2)
65 65
            return -1;
66
        av_fifo_generic_read(f, len, NULL, f2->buffer);
66
        av_fifo_generic_read(f, f2->buffer, len, NULL);
67 67
        f2->wptr += len;
68 68
        f2->wndx += len;
69 69
        av_free(f->buffer);
......
96 96
}
97 97

  
98 98

  
99
int av_fifo_generic_read(AVFifoBuffer *f, int buf_size, void (*func)(void*, void*, int), void* dest)
99
int av_fifo_generic_read(AVFifoBuffer *f, void *dest, int buf_size, void (*func)(void*, void*, int))
100 100
{
101 101
// Read memory barrier needed for SMP here in theory
102 102
    do {

Also available in: Unified diff