comparison fifo.c @ 680:cb5d78a798ac libavutil

Remove av_fifo_read, API is already broken and major version will be bumped soon.
author reimar
date Sun, 08 Mar 2009 14:21:56 +0000
parents 58a5033060c3
children 0bba880f7c22
comparison
equal deleted inserted replaced
679:58a5033060c3 680:cb5d78a798ac
44 } 44 }
45 45
46 int av_fifo_size(AVFifoBuffer *f) 46 int av_fifo_size(AVFifoBuffer *f)
47 { 47 {
48 return (uint32_t)(f->wndx - f->rndx); 48 return (uint32_t)(f->wndx - f->rndx);
49 }
50
51 int av_fifo_read(AVFifoBuffer *f, uint8_t *buf, int buf_size)
52 {
53 return av_fifo_generic_read(f, buf_size, NULL, buf);
54 } 49 }
55 50
56 #if LIBAVUTIL_VERSION_MAJOR < 50 51 #if LIBAVUTIL_VERSION_MAJOR < 50
57 void av_fifo_realloc(AVFifoBuffer *f, unsigned int new_size) { 52 void av_fifo_realloc(AVFifoBuffer *f, unsigned int new_size) {
58 av_fifo_realloc2(f, new_size); 53 av_fifo_realloc2(f, new_size);