Mercurial > libavutil.hg
comparison fifo.c @ 623:5a8d0e6cdcfb libavutil
Drop deprecated av_fifo_write function with the next libavutil version bump.
author | diego |
---|---|
date | Sun, 25 Jan 2009 19:22:47 +0000 |
parents | 34198f8250cf |
children | 8c48a1b999a3 |
comparison
equal
deleted
inserted
replaced
622:2ff7ac1e95dd | 623:5a8d0e6cdcfb |
---|---|
72 *f= f2; | 72 *f= f2; |
73 } | 73 } |
74 return 0; | 74 return 0; |
75 } | 75 } |
76 | 76 |
77 #if LIBAVUTIL_VERSION_MAJOR < 50 | |
77 void av_fifo_write(AVFifoBuffer *f, const uint8_t *buf, int size) | 78 void av_fifo_write(AVFifoBuffer *f, const uint8_t *buf, int size) |
78 { | 79 { |
79 av_fifo_generic_write(f, (void *)buf, size, NULL); | 80 av_fifo_generic_write(f, (void *)buf, size, NULL); |
80 } | 81 } |
82 #endif | |
81 | 83 |
82 int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int (*func)(void*, void*, int)) | 84 int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int (*func)(void*, void*, int)) |
83 { | 85 { |
84 int total = size; | 86 int total = size; |
85 do { | 87 do { |