Mercurial > libavutil.hg
comparison fifo.c @ 633:8c48a1b999a3 libavutil
spelling/grammar/consistency review part I
author | diego |
---|---|
date | Wed, 28 Jan 2009 00:16:05 +0000 |
parents | 5a8d0e6cdcfb |
children | 5e391d180d81 |
comparison
equal
deleted
inserted
replaced
632:f9884e1112d0 | 633:8c48a1b999a3 |
---|---|
1 /* | 1 /* |
2 * A very simple circular buffer FIFO implementation | 2 * a very simple circular buffer FIFO implementation |
3 * Copyright (c) 2000, 2001, 2002 Fabrice Bellard | 3 * Copyright (c) 2000, 2001, 2002 Fabrice Bellard |
4 * Copyright (c) 2006 Roman Shaposhnik | 4 * Copyright (c) 2006 Roman Shaposhnik |
5 * | 5 * |
6 * This file is part of FFmpeg. | 6 * This file is part of FFmpeg. |
7 * | 7 * |
115 buf_size -= len; | 115 buf_size -= len; |
116 } while (buf_size > 0); | 116 } while (buf_size > 0); |
117 return 0; | 117 return 0; |
118 } | 118 } |
119 | 119 |
120 /** discard data from the fifo */ | 120 /** Discard data from the FIFO. */ |
121 void av_fifo_drain(AVFifoBuffer *f, int size) | 121 void av_fifo_drain(AVFifoBuffer *f, int size) |
122 { | 122 { |
123 f->rptr += size; | 123 f->rptr += size; |
124 if (f->rptr >= f->end) | 124 if (f->rptr >= f->end) |
125 f->rptr -= f->end - f->buffer; | 125 f->rptr -= f->end - f->buffer; |