Mercurial > libavutil.hg
comparison fifo.c @ 683:0bba880f7c22 libavutil
Replace all uses of the replaced av_fifo_read by av_fifo_generic_read
author | reimar |
---|---|
date | Sun, 08 Mar 2009 14:42:11 +0000 |
parents | cb5d78a798ac |
children | b084f8cd043f |
comparison
equal
deleted
inserted
replaced
682:79f4e9cc2e07 | 683:0bba880f7c22 |
---|---|
61 int len= av_fifo_size(f); | 61 int len= av_fifo_size(f); |
62 AVFifoBuffer *f2= av_fifo_alloc(new_size); | 62 AVFifoBuffer *f2= av_fifo_alloc(new_size); |
63 | 63 |
64 if (!f2) | 64 if (!f2) |
65 return -1; | 65 return -1; |
66 av_fifo_read(f, f2->buffer, len); | 66 av_fifo_generic_read(f, len, NULL, f2->buffer); |
67 f2->wptr += len; | 67 f2->wptr += len; |
68 f2->wndx += len; | 68 f2->wndx += len; |
69 av_free(f->buffer); | 69 av_free(f->buffer); |
70 *f= *f2; | 70 *f= *f2; |
71 av_free(f2); | 71 av_free(f2); |