Mercurial > libavutil.hg
comparison fifo.c @ 847:9b61454d2fee libavutil
Clarify non constness of src in av_fifo_generic_write()
author | michael |
---|---|
date | Tue, 23 Feb 2010 12:14:13 +0000 |
parents | 2f890bb12bbc |
children |
comparison
equal
deleted
inserted
replaced
846:3942cf6cdad3 | 847:9b61454d2fee |
---|---|
76 av_free(f2); | 76 av_free(f2); |
77 } | 77 } |
78 return 0; | 78 return 0; |
79 } | 79 } |
80 | 80 |
81 // src must NOT be const as it can be a context for func that may need updating (like a pointer or byte counter) | |
81 int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int (*func)(void*, void*, int)) | 82 int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int (*func)(void*, void*, int)) |
82 { | 83 { |
83 int total = size; | 84 int total = size; |
84 do { | 85 do { |
85 int len = FFMIN(f->end - f->wptr, size); | 86 int len = FFMIN(f->end - f->wptr, size); |