Revision 0726982c libavutil/fifo.c

View differences:

libavutil/fifo.c
24 24

  
25 25
int av_fifo_init(AVFifoBuffer *f, int size)
26 26
{
27
    f->wptr = f->rptr =
27 28
    f->buffer = av_malloc(size);
28 29
    if (!f->buffer)
29 30
        return -1;
30 31
    f->end = f->buffer + size;
31
    f->wptr = f->rptr = f->buffer;
32 32
    return 0;
33 33
}
34 34

  

Also available in: Unified diff