From 90aa6ace63e7cb2e2ec550f861fdc902fb95f53c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Reimar=20D=C3=B6ffinger?= Date: Mon, 12 Oct 2009 16:38:08 +0000 Subject: [PATCH] Merge declaration and initialization Originally committed as revision 20214 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/aviobuf.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index dd6f9b6..268326d 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; -- 2.7.4