summaryrefslogtreecommitdiff
path: root/libavformat/aviobuf.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-10-12 16:38:08 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-10-12 16:38:08 +0000
commit90aa6ace63e7cb2e2ec550f861fdc902fb95f53c (patch)
treed14ab4b77597c61cf0ecca5ac910d99445dbda62 /libavformat/aviobuf.c
parent098d8e0950d6efbfb628b612f45df45b3c2d7b05 (diff)
Merge declaration and initialization
Originally committed as revision 20214 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r--libavformat/aviobuf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index dd6f9b6c95..268326d9a8 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -104,10 +104,8 @@ void put_byte(ByteIOContext *s, int b)
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;