Mercurial > libavformat.hg
diff aviobuf.c @ 5275:53245f639fe5 libavformat
Merge declaration and initialization
author | reimar |
---|---|
date | Mon, 12 Oct 2009 16:38:08 +0000 |
parents | ff81ddf5de81 |
children | db1e4c61789a |
line wrap: on
line diff
--- a/aviobuf.c Mon Oct 12 16:36:48 2009 +0000 +++ b/aviobuf.c Mon Oct 12 16:38:08 2009 +0000 @@ -104,10 +104,8 @@ void put_buffer(ByteIOContext *s, const unsigned char *buf, int size) { - int len; - while (size > 0) { - len = FFMIN(s->buf_end - s->buf_ptr, size); + int len = FFMIN(s->buf_end - s->buf_ptr, size); memcpy(s->buf_ptr, buf, len); s->buf_ptr += len;