[FFmpeg-cvslog] r20214 - trunk/libavformat/aviobuf.c
reimar
subversion
Mon Oct 12 18:38:08 CEST 2009
Author: reimar
Date: Mon Oct 12 18:38:08 2009
New Revision: 20214
Log:
Merge declaration and initialization
Modified:
trunk/libavformat/aviobuf.c
Modified: trunk/libavformat/aviobuf.c
==============================================================================
--- trunk/libavformat/aviobuf.c Mon Oct 12 18:36:48 2009 (r20213)
+++ trunk/libavformat/aviobuf.c Mon Oct 12 18:38:08 2009 (r20214)
@@ -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;
More information about the ffmpeg-cvslog
mailing list