diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-10-12 16:38:08 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-10-12 16:38:08 +0000 |
commit | 90aa6ace63e7cb2e2ec550f861fdc902fb95f53c (patch) | |
tree | d14ab4b77597c61cf0ecca5ac910d99445dbda62 /libavformat/aviobuf.c | |
parent | 098d8e0950d6efbfb628b612f45df45b3c2d7b05 (diff) | |
download | ffmpeg-90aa6ace63e7cb2e2ec550f861fdc902fb95f53c.tar.gz |
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.c | 4 |
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; |